aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_arasan_cf.c12
-rw-r--r--drivers/ata/pata_at91.c15
-rw-r--r--drivers/ata/pata_imx.c12
-rw-r--r--drivers/ata/pata_ixp4xx_cf.c13
-rw-r--r--drivers/ata/pata_mpc52xx.c21
-rw-r--r--drivers/ata/pata_of_platform.c12
-rw-r--r--drivers/ata/pata_palmld.c13
-rw-r--r--drivers/ata/pata_platform.c12
-rw-r--r--drivers/ata/pata_pxa.c13
-rw-r--r--drivers/ata/pata_rb532_cf.c21
-rw-r--r--drivers/ata/sata_dwc_460ex.c13
-rw-r--r--drivers/ata/sata_fsl.c14
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
966static int __init arasan_cf_init(void) 966module_platform_driver(arasan_cf_driver);
967{
968 return platform_driver_register(&arasan_cf_driver);
969}
970module_init(arasan_cf_init);
971
972static void __exit arasan_cf_exit(void)
973{
974 platform_driver_unregister(&arasan_cf_driver);
975}
976module_exit(arasan_cf_exit);
977 967
978MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); 968MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>");
979MODULE_DESCRIPTION("Arasan ATA Compact Flash driver"); 969MODULE_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
457static int __init pata_at91_init(void) 457module_platform_driver(pata_at91_driver);
458{
459 return platform_driver_register(&pata_at91_driver);
460}
461
462static void __exit pata_at91_exit(void)
463{
464 platform_driver_unregister(&pata_at91_driver);
465}
466
467
468module_init(pata_at91_init);
469module_exit(pata_at91_exit);
470
471 458
472MODULE_LICENSE("GPL"); 459MODULE_LICENSE("GPL");
473MODULE_DESCRIPTION("Driver for CF in True IDE mode on AT91SAM9260 SoC"); 460MODULE_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
238static int __init pata_imx_init(void) 238module_platform_driver(pata_imx_driver);
239{
240 return platform_driver_register(&pata_imx_driver);
241}
242
243static void __exit pata_imx_exit(void)
244{
245 platform_driver_unregister(&pata_imx_driver);
246}
247module_init(pata_imx_init);
248module_exit(pata_imx_exit);
249 239
250MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); 240MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");
251MODULE_DESCRIPTION("low-level driver for iMX PATA"); 241MODULE_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
208static int __init ixp4xx_pata_init(void) 208module_platform_driver(ixp4xx_pata_platform_driver);
209{
210 return platform_driver_register(&ixp4xx_pata_platform_driver);
211}
212
213static void __exit ixp4xx_pata_exit(void)
214{
215 platform_driver_unregister(&ixp4xx_pata_platform_driver);
216}
217 209
218MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); 210MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>");
219MODULE_DESCRIPTION("low-level driver for ixp4xx Compact Flash PATA"); 211MODULE_DESCRIPTION("low-level driver for ixp4xx Compact Flash PATA");
220MODULE_LICENSE("GPL"); 212MODULE_LICENSE("GPL");
221MODULE_VERSION(DRV_VERSION); 213MODULE_VERSION(DRV_VERSION);
222MODULE_ALIAS("platform:" DRV_NAME); 214MODULE_ALIAS("platform:" DRV_NAME);
223
224module_init(ixp4xx_pata_init);
225module_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 900module_platform_driver(mpc52xx_ata_of_platform_driver);
901/* ======================================================================== */
902/* Module */
903/* ======================================================================== */
904
905static int __init
906mpc52xx_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
912static void __exit
913mpc52xx_ata_exit(void)
914{
915 platform_driver_unregister(&mpc52xx_ata_of_platform_driver);
916}
917
918module_init(mpc52xx_ata_init);
919module_exit(mpc52xx_ata_exit);
920 901
921MODULE_AUTHOR("Sylvain Munaut <tnt@246tNt.com>"); 902MODULE_AUTHOR("Sylvain Munaut <tnt@246tNt.com>");
922MODULE_DESCRIPTION("Freescale MPC52xx IDE/ATA libata driver"); 903MODULE_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
104static int __init pata_of_platform_init(void) 104module_platform_driver(pata_of_platform_driver);
105{
106 return platform_driver_register(&pata_of_platform_driver);
107}
108module_init(pata_of_platform_init);
109
110static void __exit pata_of_platform_exit(void)
111{
112 platform_driver_unregister(&pata_of_platform_driver);
113}
114module_exit(pata_of_platform_exit);
115 105
116MODULE_DESCRIPTION("OF-platform PATA driver"); 106MODULE_DESCRIPTION("OF-platform PATA driver");
117MODULE_AUTHOR("Anton Vorontsov <avorontsov@ru.mvista.com>"); 107MODULE_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
135static int __init palmld_pata_init(void) 135module_platform_driver(palmld_pata_platform_driver);
136{
137 return platform_driver_register(&palmld_pata_platform_driver);
138}
139
140static void __exit palmld_pata_exit(void)
141{
142 platform_driver_unregister(&palmld_pata_platform_driver);
143}
144 136
145MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); 137MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>");
146MODULE_DESCRIPTION("PalmLD PATA driver"); 138MODULE_DESCRIPTION("PalmLD PATA driver");
147MODULE_LICENSE("GPL"); 139MODULE_LICENSE("GPL");
148MODULE_ALIAS("platform:" DRV_NAME); 140MODULE_ALIAS("platform:" DRV_NAME);
149
150module_init(palmld_pata_init);
151module_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
259static int __init pata_platform_init(void) 259module_platform_driver(pata_platform_driver);
260{
261 return platform_driver_register(&pata_platform_driver);
262}
263
264static void __exit pata_platform_exit(void)
265{
266 platform_driver_unregister(&pata_platform_driver);
267}
268module_init(pata_platform_init);
269module_exit(pata_platform_exit);
270 260
271module_param(pio_mask, int, 0); 261module_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
393static int __init pxa_ata_init(void) 393module_platform_driver(pxa_ata_driver);
394{
395 return platform_driver_register(&pxa_ata_driver);
396}
397
398static void __exit pxa_ata_exit(void)
399{
400 platform_driver_unregister(&pxa_ata_driver);
401}
402
403module_init(pxa_ata_init);
404module_exit(pxa_ata_exit);
405 394
406MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); 395MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>");
407MODULE_DESCRIPTION("DMA-capable driver for PATA on PXA CPU"); 396MODULE_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 */
192MODULE_ALIAS("platform:" DRV_NAME);
193
194static struct platform_driver rb532_pata_platform_driver = { 191static 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
207static int __init rb532_pata_module_init(void) 202module_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
214static void __exit rb532_pata_module_exit(void)
215{
216 platform_driver_unregister(&rb532_pata_platform_driver);
217}
218 203
219MODULE_AUTHOR("Gabor Juhos <juhosg at openwrt.org>"); 204MODULE_AUTHOR("Gabor Juhos <juhosg at openwrt.org>");
220MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>"); 205MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>");
221MODULE_DESCRIPTION(DRV_DESC); 206MODULE_DESCRIPTION(DRV_DESC);
222MODULE_VERSION(DRV_VERSION); 207MODULE_VERSION(DRV_VERSION);
223MODULE_LICENSE("GPL"); 208MODULE_LICENSE("GPL");
224 209MODULE_ALIAS("platform:" DRV_NAME);
225module_init(rb532_pata_module_init);
226module_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
1780static int __init sata_dwc_init(void) 1780module_platform_driver(sata_dwc_driver);
1781{
1782 return platform_driver_register(&sata_dwc_driver);
1783}
1784
1785static void __exit sata_dwc_exit(void)
1786{
1787 platform_driver_unregister(&sata_dwc_driver);
1788}
1789
1790module_init(sata_dwc_init);
1791module_exit(sata_dwc_exit);
1792 1781
1793MODULE_LICENSE("GPL"); 1782MODULE_LICENSE("GPL");
1794MODULE_AUTHOR("Mark Miesfeld <mmiesfeld@amcc.com>"); 1783MODULE_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
1455static int __init sata_fsl_init(void) 1455module_platform_driver(fsl_sata_driver);
1456{
1457 platform_driver_register(&fsl_sata_driver);
1458 return 0;
1459}
1460
1461static void __exit sata_fsl_exit(void)
1462{
1463 platform_driver_unregister(&fsl_sata_driver);
1464}
1465 1456
1466MODULE_LICENSE("GPL"); 1457MODULE_LICENSE("GPL");
1467MODULE_AUTHOR("Ashish Kalra, Freescale Semiconductor"); 1458MODULE_AUTHOR("Ashish Kalra, Freescale Semiconductor");
1468MODULE_DESCRIPTION("Freescale 3.0Gbps SATA controller low level driver"); 1459MODULE_DESCRIPTION("Freescale 3.0Gbps SATA controller low level driver");
1469MODULE_VERSION("1.10"); 1460MODULE_VERSION("1.10");
1470
1471module_init(sata_fsl_init);
1472module_exit(sata_fsl_exit);