diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_arasan_cf.c | 12 | ||||
-rw-r--r-- | drivers/ata/pata_at91.c | 15 | ||||
-rw-r--r-- | drivers/ata/pata_imx.c | 12 | ||||
-rw-r--r-- | drivers/ata/pata_ixp4xx_cf.c | 13 | ||||
-rw-r--r-- | drivers/ata/pata_mpc52xx.c | 21 | ||||
-rw-r--r-- | drivers/ata/pata_of_platform.c | 12 | ||||
-rw-r--r-- | drivers/ata/pata_palmld.c | 13 | ||||
-rw-r--r-- | drivers/ata/pata_platform.c | 12 | ||||
-rw-r--r-- | drivers/ata/pata_pxa.c | 13 | ||||
-rw-r--r-- | drivers/ata/pata_rb532_cf.c | 21 | ||||
-rw-r--r-- | drivers/ata/sata_dwc_460ex.c | 13 | ||||
-rw-r--r-- | drivers/ata/sata_fsl.c | 14 |
12 files changed, 13 insertions, 158 deletions
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index e8574bba3ee4..048589fad2ca 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c | |||
@@ -963,17 +963,7 @@ static struct platform_driver arasan_cf_driver = { | |||
963 | }, | 963 | }, |
964 | }; | 964 | }; |
965 | 965 | ||
966 | static int __init arasan_cf_init(void) | 966 | module_platform_driver(arasan_cf_driver); |
967 | { | ||
968 | return platform_driver_register(&arasan_cf_driver); | ||
969 | } | ||
970 | module_init(arasan_cf_init); | ||
971 | |||
972 | static void __exit arasan_cf_exit(void) | ||
973 | { | ||
974 | platform_driver_unregister(&arasan_cf_driver); | ||
975 | } | ||
976 | module_exit(arasan_cf_exit); | ||
977 | 967 | ||
978 | MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); | 968 | MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); |
979 | MODULE_DESCRIPTION("Arasan ATA Compact Flash driver"); | 969 | MODULE_DESCRIPTION("Arasan ATA Compact Flash driver"); |
diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c index a76f24a8e5db..d56dd45adf2f 100644 --- a/drivers/ata/pata_at91.c +++ b/drivers/ata/pata_at91.c | |||
@@ -454,20 +454,7 @@ static struct platform_driver pata_at91_driver = { | |||
454 | }, | 454 | }, |
455 | }; | 455 | }; |
456 | 456 | ||
457 | static int __init pata_at91_init(void) | 457 | module_platform_driver(pata_at91_driver); |
458 | { | ||
459 | return platform_driver_register(&pata_at91_driver); | ||
460 | } | ||
461 | |||
462 | static void __exit pata_at91_exit(void) | ||
463 | { | ||
464 | platform_driver_unregister(&pata_at91_driver); | ||
465 | } | ||
466 | |||
467 | |||
468 | module_init(pata_at91_init); | ||
469 | module_exit(pata_at91_exit); | ||
470 | |||
471 | 458 | ||
472 | MODULE_LICENSE("GPL"); | 459 | MODULE_LICENSE("GPL"); |
473 | MODULE_DESCRIPTION("Driver for CF in True IDE mode on AT91SAM9260 SoC"); | 460 | MODULE_DESCRIPTION("Driver for CF in True IDE mode on AT91SAM9260 SoC"); |
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index ca9d9caedfa3..c5af97f5107b 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c | |||
@@ -235,17 +235,7 @@ static struct platform_driver pata_imx_driver = { | |||
235 | }, | 235 | }, |
236 | }; | 236 | }; |
237 | 237 | ||
238 | static int __init pata_imx_init(void) | 238 | module_platform_driver(pata_imx_driver); |
239 | { | ||
240 | return platform_driver_register(&pata_imx_driver); | ||
241 | } | ||
242 | |||
243 | static void __exit pata_imx_exit(void) | ||
244 | { | ||
245 | platform_driver_unregister(&pata_imx_driver); | ||
246 | } | ||
247 | module_init(pata_imx_init); | ||
248 | module_exit(pata_imx_exit); | ||
249 | 239 | ||
250 | MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); | 240 | MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); |
251 | MODULE_DESCRIPTION("low-level driver for iMX PATA"); | 241 | MODULE_DESCRIPTION("low-level driver for iMX PATA"); |
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index 15b64311fe0a..badb1789a918 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c | |||
@@ -205,21 +205,10 @@ static struct platform_driver ixp4xx_pata_platform_driver = { | |||
205 | .remove = __devexit_p(ixp4xx_pata_remove), | 205 | .remove = __devexit_p(ixp4xx_pata_remove), |
206 | }; | 206 | }; |
207 | 207 | ||
208 | static int __init ixp4xx_pata_init(void) | 208 | module_platform_driver(ixp4xx_pata_platform_driver); |
209 | { | ||
210 | return platform_driver_register(&ixp4xx_pata_platform_driver); | ||
211 | } | ||
212 | |||
213 | static void __exit ixp4xx_pata_exit(void) | ||
214 | { | ||
215 | platform_driver_unregister(&ixp4xx_pata_platform_driver); | ||
216 | } | ||
217 | 209 | ||
218 | MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); | 210 | MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); |
219 | MODULE_DESCRIPTION("low-level driver for ixp4xx Compact Flash PATA"); | 211 | MODULE_DESCRIPTION("low-level driver for ixp4xx Compact Flash PATA"); |
220 | MODULE_LICENSE("GPL"); | 212 | MODULE_LICENSE("GPL"); |
221 | MODULE_VERSION(DRV_VERSION); | 213 | MODULE_VERSION(DRV_VERSION); |
222 | MODULE_ALIAS("platform:" DRV_NAME); | 214 | MODULE_ALIAS("platform:" DRV_NAME); |
223 | |||
224 | module_init(ixp4xx_pata_init); | ||
225 | module_exit(ixp4xx_pata_exit); | ||
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index 3e1746314f22..00748ae1a016 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c | |||
@@ -897,26 +897,7 @@ static struct platform_driver mpc52xx_ata_of_platform_driver = { | |||
897 | }, | 897 | }, |
898 | }; | 898 | }; |
899 | 899 | ||
900 | 900 | module_platform_driver(mpc52xx_ata_of_platform_driver); | |
901 | /* ======================================================================== */ | ||
902 | /* Module */ | ||
903 | /* ======================================================================== */ | ||
904 | |||
905 | static int __init | ||
906 | mpc52xx_ata_init(void) | ||
907 | { | ||
908 | printk(KERN_INFO "ata: MPC52xx IDE/ATA libata driver\n"); | ||
909 | return platform_driver_register(&mpc52xx_ata_of_platform_driver); | ||
910 | } | ||
911 | |||
912 | static void __exit | ||
913 | mpc52xx_ata_exit(void) | ||
914 | { | ||
915 | platform_driver_unregister(&mpc52xx_ata_of_platform_driver); | ||
916 | } | ||
917 | |||
918 | module_init(mpc52xx_ata_init); | ||
919 | module_exit(mpc52xx_ata_exit); | ||
920 | 901 | ||
921 | MODULE_AUTHOR("Sylvain Munaut <tnt@246tNt.com>"); | 902 | MODULE_AUTHOR("Sylvain Munaut <tnt@246tNt.com>"); |
922 | MODULE_DESCRIPTION("Freescale MPC52xx IDE/ATA libata driver"); | 903 | MODULE_DESCRIPTION("Freescale MPC52xx IDE/ATA libata driver"); |
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index 2a472c5bb7db..9f11c35418c4 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c | |||
@@ -101,17 +101,7 @@ static struct platform_driver pata_of_platform_driver = { | |||
101 | .remove = __devexit_p(pata_of_platform_remove), | 101 | .remove = __devexit_p(pata_of_platform_remove), |
102 | }; | 102 | }; |
103 | 103 | ||
104 | static int __init pata_of_platform_init(void) | 104 | module_platform_driver(pata_of_platform_driver); |
105 | { | ||
106 | return platform_driver_register(&pata_of_platform_driver); | ||
107 | } | ||
108 | module_init(pata_of_platform_init); | ||
109 | |||
110 | static void __exit pata_of_platform_exit(void) | ||
111 | { | ||
112 | platform_driver_unregister(&pata_of_platform_driver); | ||
113 | } | ||
114 | module_exit(pata_of_platform_exit); | ||
115 | 105 | ||
116 | MODULE_DESCRIPTION("OF-platform PATA driver"); | 106 | MODULE_DESCRIPTION("OF-platform PATA driver"); |
117 | MODULE_AUTHOR("Anton Vorontsov <avorontsov@ru.mvista.com>"); | 107 | MODULE_AUTHOR("Anton Vorontsov <avorontsov@ru.mvista.com>"); |
diff --git a/drivers/ata/pata_palmld.c b/drivers/ata/pata_palmld.c index b86d7e22595e..5ff31b68135c 100644 --- a/drivers/ata/pata_palmld.c +++ b/drivers/ata/pata_palmld.c | |||
@@ -132,20 +132,9 @@ static struct platform_driver palmld_pata_platform_driver = { | |||
132 | .remove = __devexit_p(palmld_pata_remove), | 132 | .remove = __devexit_p(palmld_pata_remove), |
133 | }; | 133 | }; |
134 | 134 | ||
135 | static int __init palmld_pata_init(void) | 135 | module_platform_driver(palmld_pata_platform_driver); |
136 | { | ||
137 | return platform_driver_register(&palmld_pata_platform_driver); | ||
138 | } | ||
139 | |||
140 | static void __exit palmld_pata_exit(void) | ||
141 | { | ||
142 | platform_driver_unregister(&palmld_pata_platform_driver); | ||
143 | } | ||
144 | 136 | ||
145 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); | 137 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); |
146 | MODULE_DESCRIPTION("PalmLD PATA driver"); | 138 | MODULE_DESCRIPTION("PalmLD PATA driver"); |
147 | MODULE_LICENSE("GPL"); | 139 | MODULE_LICENSE("GPL"); |
148 | MODULE_ALIAS("platform:" DRV_NAME); | 140 | MODULE_ALIAS("platform:" DRV_NAME); |
149 | |||
150 | module_init(palmld_pata_init); | ||
151 | module_exit(palmld_pata_exit); | ||
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index 2067308f683f..f1848aeda783 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c | |||
@@ -256,17 +256,7 @@ static struct platform_driver pata_platform_driver = { | |||
256 | }, | 256 | }, |
257 | }; | 257 | }; |
258 | 258 | ||
259 | static int __init pata_platform_init(void) | 259 | module_platform_driver(pata_platform_driver); |
260 | { | ||
261 | return platform_driver_register(&pata_platform_driver); | ||
262 | } | ||
263 | |||
264 | static void __exit pata_platform_exit(void) | ||
265 | { | ||
266 | platform_driver_unregister(&pata_platform_driver); | ||
267 | } | ||
268 | module_init(pata_platform_init); | ||
269 | module_exit(pata_platform_exit); | ||
270 | 260 | ||
271 | module_param(pio_mask, int, 0); | 261 | module_param(pio_mask, int, 0); |
272 | 262 | ||
diff --git a/drivers/ata/pata_pxa.c b/drivers/ata/pata_pxa.c index b4ede40f8ae1..0bb0fb7b26bc 100644 --- a/drivers/ata/pata_pxa.c +++ b/drivers/ata/pata_pxa.c | |||
@@ -390,18 +390,7 @@ static struct platform_driver pxa_ata_driver = { | |||
390 | }, | 390 | }, |
391 | }; | 391 | }; |
392 | 392 | ||
393 | static int __init pxa_ata_init(void) | 393 | module_platform_driver(pxa_ata_driver); |
394 | { | ||
395 | return platform_driver_register(&pxa_ata_driver); | ||
396 | } | ||
397 | |||
398 | static void __exit pxa_ata_exit(void) | ||
399 | { | ||
400 | platform_driver_unregister(&pxa_ata_driver); | ||
401 | } | ||
402 | |||
403 | module_init(pxa_ata_init); | ||
404 | module_exit(pxa_ata_exit); | ||
405 | 394 | ||
406 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); | 395 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); |
407 | MODULE_DESCRIPTION("DMA-capable driver for PATA on PXA CPU"); | 396 | MODULE_DESCRIPTION("DMA-capable driver for PATA on PXA CPU"); |
diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c index 1b9d10d9c5d9..9417101bd5ca 100644 --- a/drivers/ata/pata_rb532_cf.c +++ b/drivers/ata/pata_rb532_cf.c | |||
@@ -188,9 +188,6 @@ static __devexit int rb532_pata_driver_remove(struct platform_device *pdev) | |||
188 | return 0; | 188 | return 0; |
189 | } | 189 | } |
190 | 190 | ||
191 | /* work with hotplug and coldplug */ | ||
192 | MODULE_ALIAS("platform:" DRV_NAME); | ||
193 | |||
194 | static struct platform_driver rb532_pata_platform_driver = { | 191 | static struct platform_driver rb532_pata_platform_driver = { |
195 | .probe = rb532_pata_driver_probe, | 192 | .probe = rb532_pata_driver_probe, |
196 | .remove = __devexit_p(rb532_pata_driver_remove), | 193 | .remove = __devexit_p(rb532_pata_driver_remove), |
@@ -200,27 +197,13 @@ static struct platform_driver rb532_pata_platform_driver = { | |||
200 | }, | 197 | }, |
201 | }; | 198 | }; |
202 | 199 | ||
203 | /* ------------------------------------------------------------------------ */ | ||
204 | |||
205 | #define DRV_INFO DRV_DESC " version " DRV_VERSION | 200 | #define DRV_INFO DRV_DESC " version " DRV_VERSION |
206 | 201 | ||
207 | static int __init rb532_pata_module_init(void) | 202 | module_platform_driver(rb532_pata_platform_driver); |
208 | { | ||
209 | printk(KERN_INFO DRV_INFO "\n"); | ||
210 | |||
211 | return platform_driver_register(&rb532_pata_platform_driver); | ||
212 | } | ||
213 | |||
214 | static void __exit rb532_pata_module_exit(void) | ||
215 | { | ||
216 | platform_driver_unregister(&rb532_pata_platform_driver); | ||
217 | } | ||
218 | 203 | ||
219 | MODULE_AUTHOR("Gabor Juhos <juhosg at openwrt.org>"); | 204 | MODULE_AUTHOR("Gabor Juhos <juhosg at openwrt.org>"); |
220 | MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>"); | 205 | MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>"); |
221 | MODULE_DESCRIPTION(DRV_DESC); | 206 | MODULE_DESCRIPTION(DRV_DESC); |
222 | MODULE_VERSION(DRV_VERSION); | 207 | MODULE_VERSION(DRV_VERSION); |
223 | MODULE_LICENSE("GPL"); | 208 | MODULE_LICENSE("GPL"); |
224 | 209 | MODULE_ALIAS("platform:" DRV_NAME); | |
225 | module_init(rb532_pata_module_init); | ||
226 | module_exit(rb532_pata_module_exit); | ||
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index 5c4237452f50..69f7cde49c6b 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c | |||
@@ -1777,18 +1777,7 @@ static struct platform_driver sata_dwc_driver = { | |||
1777 | .remove = sata_dwc_remove, | 1777 | .remove = sata_dwc_remove, |
1778 | }; | 1778 | }; |
1779 | 1779 | ||
1780 | static int __init sata_dwc_init(void) | 1780 | module_platform_driver(sata_dwc_driver); |
1781 | { | ||
1782 | return platform_driver_register(&sata_dwc_driver); | ||
1783 | } | ||
1784 | |||
1785 | static void __exit sata_dwc_exit(void) | ||
1786 | { | ||
1787 | platform_driver_unregister(&sata_dwc_driver); | ||
1788 | } | ||
1789 | |||
1790 | module_init(sata_dwc_init); | ||
1791 | module_exit(sata_dwc_exit); | ||
1792 | 1781 | ||
1793 | MODULE_LICENSE("GPL"); | 1782 | MODULE_LICENSE("GPL"); |
1794 | MODULE_AUTHOR("Mark Miesfeld <mmiesfeld@amcc.com>"); | 1783 | MODULE_AUTHOR("Mark Miesfeld <mmiesfeld@amcc.com>"); |
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index 78ae7b67b09e..5a2c95ba050a 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c | |||
@@ -1452,21 +1452,9 @@ static struct platform_driver fsl_sata_driver = { | |||
1452 | #endif | 1452 | #endif |
1453 | }; | 1453 | }; |
1454 | 1454 | ||
1455 | static int __init sata_fsl_init(void) | 1455 | module_platform_driver(fsl_sata_driver); |
1456 | { | ||
1457 | platform_driver_register(&fsl_sata_driver); | ||
1458 | return 0; | ||
1459 | } | ||
1460 | |||
1461 | static void __exit sata_fsl_exit(void) | ||
1462 | { | ||
1463 | platform_driver_unregister(&fsl_sata_driver); | ||
1464 | } | ||
1465 | 1456 | ||
1466 | MODULE_LICENSE("GPL"); | 1457 | MODULE_LICENSE("GPL"); |
1467 | MODULE_AUTHOR("Ashish Kalra, Freescale Semiconductor"); | 1458 | MODULE_AUTHOR("Ashish Kalra, Freescale Semiconductor"); |
1468 | MODULE_DESCRIPTION("Freescale 3.0Gbps SATA controller low level driver"); | 1459 | MODULE_DESCRIPTION("Freescale 3.0Gbps SATA controller low level driver"); |
1469 | MODULE_VERSION("1.10"); | 1460 | MODULE_VERSION("1.10"); |
1470 | |||
1471 | module_init(sata_fsl_init); | ||
1472 | module_exit(sata_fsl_exit); | ||