dt: Eliminate of_platform_{,un}register_driver
Final step to eliminate of_platform_bus_type. They're all just platform drivers now. v2: fix type in pasemi_nand.c (thanks to Stephen Rothwell) Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -162,8 +162,7 @@ static const char *part_probes[] = { "cmdlinepart", NULL };
|
||||
/*
|
||||
* Probe for the NAND device.
|
||||
*/
|
||||
static int __devinit socrates_nand_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *ofid)
|
||||
static int __devinit socrates_nand_probe(struct platform_device *ofdev)
|
||||
{
|
||||
struct socrates_nand_host *host;
|
||||
struct mtd_info *mtd;
|
||||
@@ -300,7 +299,7 @@ static const struct of_device_id socrates_nand_match[] =
|
||||
|
||||
MODULE_DEVICE_TABLE(of, socrates_nand_match);
|
||||
|
||||
static struct of_platform_driver socrates_nand_driver = {
|
||||
static struct platform_driver socrates_nand_driver = {
|
||||
.driver = {
|
||||
.name = "socrates_nand",
|
||||
.owner = THIS_MODULE,
|
||||
@@ -312,12 +311,12 @@ static struct of_platform_driver socrates_nand_driver = {
|
||||
|
||||
static int __init socrates_nand_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&socrates_nand_driver);
|
||||
return platform_driver_register(&socrates_nand_driver);
|
||||
}
|
||||
|
||||
static void __exit socrates_nand_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&socrates_nand_driver);
|
||||
platform_driver_unregister(&socrates_nand_driver);
|
||||
}
|
||||
|
||||
module_init(socrates_nand_init);
|
||||
|
Reference in New Issue
Block a user