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 | |
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')
-rw-r--r-- | drivers/ata/pata_mpc52xx.c | 8 | ||||
-rw-r--r-- | drivers/ata/pata_of_platform.c | 9 | ||||
-rw-r--r-- | drivers/ata/sata_dwc_460ex.c | 9 | ||||
-rw-r--r-- | drivers/ata/sata_fsl.c | 9 |
4 files changed, 16 insertions, 19 deletions
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index d7d8026cde99..2fcac511d39c 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c | |||
@@ -680,7 +680,7 @@ mpc52xx_ata_remove_one(struct device *dev) | |||
680 | /* ======================================================================== */ | 680 | /* ======================================================================== */ |
681 | 681 | ||
682 | static int __devinit | 682 | static int __devinit |
683 | mpc52xx_ata_probe(struct platform_device *op, const struct of_device_id *match) | 683 | mpc52xx_ata_probe(struct platform_device *op) |
684 | { | 684 | { |
685 | unsigned int ipb_freq; | 685 | unsigned int ipb_freq; |
686 | struct resource res_mem; | 686 | struct resource res_mem; |
@@ -883,7 +883,7 @@ static struct of_device_id mpc52xx_ata_of_match[] = { | |||
883 | }; | 883 | }; |
884 | 884 | ||
885 | 885 | ||
886 | static struct of_platform_driver mpc52xx_ata_of_platform_driver = { | 886 | static struct platform_driver mpc52xx_ata_of_platform_driver = { |
887 | .probe = mpc52xx_ata_probe, | 887 | .probe = mpc52xx_ata_probe, |
888 | .remove = mpc52xx_ata_remove, | 888 | .remove = mpc52xx_ata_remove, |
889 | #ifdef CONFIG_PM | 889 | #ifdef CONFIG_PM |
@@ -906,13 +906,13 @@ static int __init | |||
906 | mpc52xx_ata_init(void) | 906 | mpc52xx_ata_init(void) |
907 | { | 907 | { |
908 | printk(KERN_INFO "ata: MPC52xx IDE/ATA libata driver\n"); | 908 | printk(KERN_INFO "ata: MPC52xx IDE/ATA libata driver\n"); |
909 | return of_register_platform_driver(&mpc52xx_ata_of_platform_driver); | 909 | return platform_driver_register(&mpc52xx_ata_of_platform_driver); |
910 | } | 910 | } |
911 | 911 | ||
912 | static void __exit | 912 | static void __exit |
913 | mpc52xx_ata_exit(void) | 913 | mpc52xx_ata_exit(void) |
914 | { | 914 | { |
915 | of_unregister_platform_driver(&mpc52xx_ata_of_platform_driver); | 915 | platform_driver_unregister(&mpc52xx_ata_of_platform_driver); |
916 | } | 916 | } |
917 | 917 | ||
918 | module_init(mpc52xx_ata_init); | 918 | module_init(mpc52xx_ata_init); |
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index 480e043ce6b8..f3054009bd25 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c | |||
@@ -14,8 +14,7 @@ | |||
14 | #include <linux/of_platform.h> | 14 | #include <linux/of_platform.h> |
15 | #include <linux/ata_platform.h> | 15 | #include <linux/ata_platform.h> |
16 | 16 | ||
17 | static int __devinit pata_of_platform_probe(struct platform_device *ofdev, | 17 | static int __devinit pata_of_platform_probe(struct platform_device *ofdev) |
18 | const struct of_device_id *match) | ||
19 | { | 18 | { |
20 | int ret; | 19 | int ret; |
21 | struct device_node *dn = ofdev->dev.of_node; | 20 | struct device_node *dn = ofdev->dev.of_node; |
@@ -90,7 +89,7 @@ static struct of_device_id pata_of_platform_match[] = { | |||
90 | }; | 89 | }; |
91 | MODULE_DEVICE_TABLE(of, pata_of_platform_match); | 90 | MODULE_DEVICE_TABLE(of, pata_of_platform_match); |
92 | 91 | ||
93 | static struct of_platform_driver pata_of_platform_driver = { | 92 | static struct platform_driver pata_of_platform_driver = { |
94 | .driver = { | 93 | .driver = { |
95 | .name = "pata_of_platform", | 94 | .name = "pata_of_platform", |
96 | .owner = THIS_MODULE, | 95 | .owner = THIS_MODULE, |
@@ -102,13 +101,13 @@ static struct of_platform_driver pata_of_platform_driver = { | |||
102 | 101 | ||
103 | static int __init pata_of_platform_init(void) | 102 | static int __init pata_of_platform_init(void) |
104 | { | 103 | { |
105 | return of_register_platform_driver(&pata_of_platform_driver); | 104 | return platform_driver_register(&pata_of_platform_driver); |
106 | } | 105 | } |
107 | module_init(pata_of_platform_init); | 106 | module_init(pata_of_platform_init); |
108 | 107 | ||
109 | static void __exit pata_of_platform_exit(void) | 108 | static void __exit pata_of_platform_exit(void) |
110 | { | 109 | { |
111 | of_unregister_platform_driver(&pata_of_platform_driver); | 110 | platform_driver_unregister(&pata_of_platform_driver); |
112 | } | 111 | } |
113 | module_exit(pata_of_platform_exit); | 112 | module_exit(pata_of_platform_exit); |
114 | 113 | ||
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index 6cf57c5c2b5f..685a3a4b4d82 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c | |||
@@ -1588,8 +1588,7 @@ static const struct ata_port_info sata_dwc_port_info[] = { | |||
1588 | }, | 1588 | }, |
1589 | }; | 1589 | }; |
1590 | 1590 | ||
1591 | static int sata_dwc_probe(struct platform_device *ofdev, | 1591 | static int sata_dwc_probe(struct platform_device *ofdev) |
1592 | const struct of_device_id *match) | ||
1593 | { | 1592 | { |
1594 | struct sata_dwc_device *hsdev; | 1593 | struct sata_dwc_device *hsdev; |
1595 | u32 idr, versionr; | 1594 | u32 idr, versionr; |
@@ -1727,7 +1726,7 @@ static const struct of_device_id sata_dwc_match[] = { | |||
1727 | }; | 1726 | }; |
1728 | MODULE_DEVICE_TABLE(of, sata_dwc_match); | 1727 | MODULE_DEVICE_TABLE(of, sata_dwc_match); |
1729 | 1728 | ||
1730 | static struct of_platform_driver sata_dwc_driver = { | 1729 | static struct platform_driver sata_dwc_driver = { |
1731 | .driver = { | 1730 | .driver = { |
1732 | .name = DRV_NAME, | 1731 | .name = DRV_NAME, |
1733 | .owner = THIS_MODULE, | 1732 | .owner = THIS_MODULE, |
@@ -1739,12 +1738,12 @@ static struct of_platform_driver sata_dwc_driver = { | |||
1739 | 1738 | ||
1740 | static int __init sata_dwc_init(void) | 1739 | static int __init sata_dwc_init(void) |
1741 | { | 1740 | { |
1742 | return of_register_platform_driver(&sata_dwc_driver); | 1741 | return platform_driver_register(&sata_dwc_driver); |
1743 | } | 1742 | } |
1744 | 1743 | ||
1745 | static void __exit sata_dwc_exit(void) | 1744 | static void __exit sata_dwc_exit(void) |
1746 | { | 1745 | { |
1747 | of_unregister_platform_driver(&sata_dwc_driver); | 1746 | platform_driver_unregister(&sata_dwc_driver); |
1748 | } | 1747 | } |
1749 | 1748 | ||
1750 | module_init(sata_dwc_init); | 1749 | module_init(sata_dwc_init); |
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"); |