diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-17 04:43:24 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 15:22:46 -0500 |
commit | 1c48a5c93da63132b92c4bbcd18e690c51539df6 (patch) | |
tree | 746e990ce0f49e48e2cc9d55766485f468ca35f6 /drivers/ata/sata_fsl.c | |
parent | 793218dfea146946a076f4fe51e574db61034a3e (diff) |
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>
Diffstat (limited to 'drivers/ata/sata_fsl.c')
-rw-r--r-- | drivers/ata/sata_fsl.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index b0214d00d50b..b843e8e9605e 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c | |||
@@ -1293,8 +1293,7 @@ static const struct ata_port_info sata_fsl_port_info[] = { | |||
1293 | }, | 1293 | }, |
1294 | }; | 1294 | }; |
1295 | 1295 | ||
1296 | static int sata_fsl_probe(struct platform_device *ofdev, | 1296 | static int sata_fsl_probe(struct platform_device *ofdev) |
1297 | const struct of_device_id *match) | ||
1298 | { | 1297 | { |
1299 | int retval = -ENXIO; | 1298 | int retval = -ENXIO; |
1300 | void __iomem *hcr_base = NULL; | 1299 | void __iomem *hcr_base = NULL; |
@@ -1423,7 +1422,7 @@ static struct of_device_id fsl_sata_match[] = { | |||
1423 | 1422 | ||
1424 | MODULE_DEVICE_TABLE(of, fsl_sata_match); | 1423 | MODULE_DEVICE_TABLE(of, fsl_sata_match); |
1425 | 1424 | ||
1426 | static struct of_platform_driver fsl_sata_driver = { | 1425 | static struct platform_driver fsl_sata_driver = { |
1427 | .driver = { | 1426 | .driver = { |
1428 | .name = "fsl-sata", | 1427 | .name = "fsl-sata", |
1429 | .owner = THIS_MODULE, | 1428 | .owner = THIS_MODULE, |
@@ -1439,13 +1438,13 @@ static struct of_platform_driver fsl_sata_driver = { | |||
1439 | 1438 | ||
1440 | static int __init sata_fsl_init(void) | 1439 | static int __init sata_fsl_init(void) |
1441 | { | 1440 | { |
1442 | of_register_platform_driver(&fsl_sata_driver); | 1441 | platform_driver_register(&fsl_sata_driver); |
1443 | return 0; | 1442 | return 0; |
1444 | } | 1443 | } |
1445 | 1444 | ||
1446 | static void __exit sata_fsl_exit(void) | 1445 | static void __exit sata_fsl_exit(void) |
1447 | { | 1446 | { |
1448 | of_unregister_platform_driver(&fsl_sata_driver); | 1447 | platform_driver_unregister(&fsl_sata_driver); |
1449 | } | 1448 | } |
1450 | 1449 | ||
1451 | MODULE_LICENSE("GPL"); | 1450 | MODULE_LICENSE("GPL"); |