diff options
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/bfin_sdh.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/cb710-mmc.c | 13 | ||||
-rw-r--r-- | drivers/mmc/host/jz4740_mmc.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/msm_sdcc.c | 13 | ||||
-rw-r--r-- | drivers/mmc/host/mxcmmc.c | 13 | ||||
-rw-r--r-- | drivers/mmc/host/mxs-mmc.c | 13 | ||||
-rw-r--r-- | drivers/mmc/host/pxamci.c | 13 | ||||
-rw-r--r-- | drivers/mmc/host/s3cmci.c | 13 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-cns3xxx.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-dove.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-esdhc-imx.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-of-esdhc.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-of-hlwd.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-pxav2.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-pxav3.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-s3c.c | 13 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-spear.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 12 | ||||
-rw-r--r-- | drivers/mmc/host/sh_mmcif.c | 14 | ||||
-rw-r--r-- | drivers/mmc/host/sh_mobile_sdhi.c | 13 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc.c | 14 |
21 files changed, 21 insertions, 243 deletions
diff --git a/drivers/mmc/host/bfin_sdh.c b/drivers/mmc/host/bfin_sdh.c index 0371bf502249..03666174ca48 100644 --- a/drivers/mmc/host/bfin_sdh.c +++ b/drivers/mmc/host/bfin_sdh.c | |||
@@ -627,17 +627,7 @@ static struct platform_driver sdh_driver = { | |||
627 | }, | 627 | }, |
628 | }; | 628 | }; |
629 | 629 | ||
630 | static int __init sdh_init(void) | 630 | module_platform_driver(sdh_driver); |
631 | { | ||
632 | return platform_driver_register(&sdh_driver); | ||
633 | } | ||
634 | module_init(sdh_init); | ||
635 | |||
636 | static void __exit sdh_exit(void) | ||
637 | { | ||
638 | platform_driver_unregister(&sdh_driver); | ||
639 | } | ||
640 | module_exit(sdh_exit); | ||
641 | 631 | ||
642 | MODULE_DESCRIPTION("Blackfin Secure Digital Host Driver"); | 632 | MODULE_DESCRIPTION("Blackfin Secure Digital Host Driver"); |
643 | MODULE_AUTHOR("Cliff Cai, Roy Huang"); | 633 | MODULE_AUTHOR("Cliff Cai, Roy Huang"); |
diff --git a/drivers/mmc/host/cb710-mmc.c b/drivers/mmc/host/cb710-mmc.c index ce2a47b71dd6..83693fd7c6b3 100644 --- a/drivers/mmc/host/cb710-mmc.c +++ b/drivers/mmc/host/cb710-mmc.c | |||
@@ -780,18 +780,7 @@ static struct platform_driver cb710_mmc_driver = { | |||
780 | #endif | 780 | #endif |
781 | }; | 781 | }; |
782 | 782 | ||
783 | static int __init cb710_mmc_init_module(void) | 783 | module_platform_driver(cb710_mmc_driver); |
784 | { | ||
785 | return platform_driver_register(&cb710_mmc_driver); | ||
786 | } | ||
787 | |||
788 | static void __exit cb710_mmc_cleanup_module(void) | ||
789 | { | ||
790 | platform_driver_unregister(&cb710_mmc_driver); | ||
791 | } | ||
792 | |||
793 | module_init(cb710_mmc_init_module); | ||
794 | module_exit(cb710_mmc_cleanup_module); | ||
795 | 784 | ||
796 | MODULE_AUTHOR("Michał Mirosław <mirq-linux@rere.qmqm.pl>"); | 785 | MODULE_AUTHOR("Michał Mirosław <mirq-linux@rere.qmqm.pl>"); |
797 | MODULE_DESCRIPTION("ENE CB710 memory card reader driver - MMC/SD part"); | 786 | MODULE_DESCRIPTION("ENE CB710 memory card reader driver - MMC/SD part"); |
diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c index 74218ad677e4..c8852a8128a9 100644 --- a/drivers/mmc/host/jz4740_mmc.c +++ b/drivers/mmc/host/jz4740_mmc.c | |||
@@ -1012,17 +1012,7 @@ static struct platform_driver jz4740_mmc_driver = { | |||
1012 | }, | 1012 | }, |
1013 | }; | 1013 | }; |
1014 | 1014 | ||
1015 | static int __init jz4740_mmc_init(void) | 1015 | module_platform_driver(jz4740_mmc_driver); |
1016 | { | ||
1017 | return platform_driver_register(&jz4740_mmc_driver); | ||
1018 | } | ||
1019 | module_init(jz4740_mmc_init); | ||
1020 | |||
1021 | static void __exit jz4740_mmc_exit(void) | ||
1022 | { | ||
1023 | platform_driver_unregister(&jz4740_mmc_driver); | ||
1024 | } | ||
1025 | module_exit(jz4740_mmc_exit); | ||
1026 | 1016 | ||
1027 | MODULE_DESCRIPTION("JZ4740 SD/MMC controller driver"); | 1017 | MODULE_DESCRIPTION("JZ4740 SD/MMC controller driver"); |
1028 | MODULE_LICENSE("GPL"); | 1018 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 80d8eb143b48..475596653c19 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/drivers/mmc/host/msm_sdcc.c | |||
@@ -1480,18 +1480,7 @@ static struct platform_driver msmsdcc_driver = { | |||
1480 | }, | 1480 | }, |
1481 | }; | 1481 | }; |
1482 | 1482 | ||
1483 | static int __init msmsdcc_init(void) | 1483 | module_platform_driver(msmsdcc_driver); |
1484 | { | ||
1485 | return platform_driver_register(&msmsdcc_driver); | ||
1486 | } | ||
1487 | |||
1488 | static void __exit msmsdcc_exit(void) | ||
1489 | { | ||
1490 | platform_driver_unregister(&msmsdcc_driver); | ||
1491 | } | ||
1492 | |||
1493 | module_init(msmsdcc_init); | ||
1494 | module_exit(msmsdcc_exit); | ||
1495 | 1484 | ||
1496 | MODULE_DESCRIPTION("Qualcomm MSM 7X00A Multimedia Card Interface driver"); | 1485 | MODULE_DESCRIPTION("Qualcomm MSM 7X00A Multimedia Card Interface driver"); |
1497 | MODULE_LICENSE("GPL"); | 1486 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index 8e0fbe994047..7088b40f9579 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c | |||
@@ -1047,18 +1047,7 @@ static struct platform_driver mxcmci_driver = { | |||
1047 | } | 1047 | } |
1048 | }; | 1048 | }; |
1049 | 1049 | ||
1050 | static int __init mxcmci_init(void) | 1050 | module_platform_driver(mxcmci_driver); |
1051 | { | ||
1052 | return platform_driver_register(&mxcmci_driver); | ||
1053 | } | ||
1054 | |||
1055 | static void __exit mxcmci_exit(void) | ||
1056 | { | ||
1057 | platform_driver_unregister(&mxcmci_driver); | ||
1058 | } | ||
1059 | |||
1060 | module_init(mxcmci_init); | ||
1061 | module_exit(mxcmci_exit); | ||
1062 | 1051 | ||
1063 | MODULE_DESCRIPTION("i.MX Multimedia Card Interface Driver"); | 1052 | MODULE_DESCRIPTION("i.MX Multimedia Card Interface Driver"); |
1064 | MODULE_AUTHOR("Sascha Hauer, Pengutronix"); | 1053 | MODULE_AUTHOR("Sascha Hauer, Pengutronix"); |
diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index 99b449d26a4d..cf18fc2b24cd 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c | |||
@@ -855,18 +855,7 @@ static struct platform_driver mxs_mmc_driver = { | |||
855 | }, | 855 | }, |
856 | }; | 856 | }; |
857 | 857 | ||
858 | static int __init mxs_mmc_init(void) | 858 | module_platform_driver(mxs_mmc_driver); |
859 | { | ||
860 | return platform_driver_register(&mxs_mmc_driver); | ||
861 | } | ||
862 | |||
863 | static void __exit mxs_mmc_exit(void) | ||
864 | { | ||
865 | platform_driver_unregister(&mxs_mmc_driver); | ||
866 | } | ||
867 | |||
868 | module_init(mxs_mmc_init); | ||
869 | module_exit(mxs_mmc_exit); | ||
870 | 859 | ||
871 | MODULE_DESCRIPTION("FREESCALE MXS MMC peripheral"); | 860 | MODULE_DESCRIPTION("FREESCALE MXS MMC peripheral"); |
872 | MODULE_AUTHOR("Freescale Semiconductor"); | 861 | MODULE_AUTHOR("Freescale Semiconductor"); |
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index fc4356e00d46..cb2dc0e75ba7 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c | |||
@@ -872,18 +872,7 @@ static struct platform_driver pxamci_driver = { | |||
872 | }, | 872 | }, |
873 | }; | 873 | }; |
874 | 874 | ||
875 | static int __init pxamci_init(void) | 875 | module_platform_driver(pxamci_driver); |
876 | { | ||
877 | return platform_driver_register(&pxamci_driver); | ||
878 | } | ||
879 | |||
880 | static void __exit pxamci_exit(void) | ||
881 | { | ||
882 | platform_driver_unregister(&pxamci_driver); | ||
883 | } | ||
884 | |||
885 | module_init(pxamci_init); | ||
886 | module_exit(pxamci_exit); | ||
887 | 876 | ||
888 | MODULE_DESCRIPTION("PXA Multimedia Card Interface Driver"); | 877 | MODULE_DESCRIPTION("PXA Multimedia Card Interface Driver"); |
889 | MODULE_LICENSE("GPL"); | 878 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 720f99334a7f..1bcfd6dbb5cc 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c | |||
@@ -1914,18 +1914,7 @@ static struct platform_driver s3cmci_driver = { | |||
1914 | .shutdown = s3cmci_shutdown, | 1914 | .shutdown = s3cmci_shutdown, |
1915 | }; | 1915 | }; |
1916 | 1916 | ||
1917 | static int __init s3cmci_init(void) | 1917 | module_platform_driver(s3cmci_driver); |
1918 | { | ||
1919 | return platform_driver_register(&s3cmci_driver); | ||
1920 | } | ||
1921 | |||
1922 | static void __exit s3cmci_exit(void) | ||
1923 | { | ||
1924 | platform_driver_unregister(&s3cmci_driver); | ||
1925 | } | ||
1926 | |||
1927 | module_init(s3cmci_init); | ||
1928 | module_exit(s3cmci_exit); | ||
1929 | 1918 | ||
1930 | MODULE_DESCRIPTION("Samsung S3C MMC/SD Card Interface driver"); | 1919 | MODULE_DESCRIPTION("Samsung S3C MMC/SD Card Interface driver"); |
1931 | MODULE_LICENSE("GPL v2"); | 1920 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/mmc/host/sdhci-cns3xxx.c b/drivers/mmc/host/sdhci-cns3xxx.c index b4257e700617..28a870804f60 100644 --- a/drivers/mmc/host/sdhci-cns3xxx.c +++ b/drivers/mmc/host/sdhci-cns3xxx.c | |||
@@ -115,17 +115,7 @@ static struct platform_driver sdhci_cns3xxx_driver = { | |||
115 | .remove = __devexit_p(sdhci_cns3xxx_remove), | 115 | .remove = __devexit_p(sdhci_cns3xxx_remove), |
116 | }; | 116 | }; |
117 | 117 | ||
118 | static int __init sdhci_cns3xxx_init(void) | 118 | module_platform_driver(sdhci_cns3xxx_driver); |
119 | { | ||
120 | return platform_driver_register(&sdhci_cns3xxx_driver); | ||
121 | } | ||
122 | module_init(sdhci_cns3xxx_init); | ||
123 | |||
124 | static void __exit sdhci_cns3xxx_exit(void) | ||
125 | { | ||
126 | platform_driver_unregister(&sdhci_cns3xxx_driver); | ||
127 | } | ||
128 | module_exit(sdhci_cns3xxx_exit); | ||
129 | 119 | ||
130 | MODULE_DESCRIPTION("SDHCI driver for CNS3xxx"); | 120 | MODULE_DESCRIPTION("SDHCI driver for CNS3xxx"); |
131 | MODULE_AUTHOR("Scott Shu, " | 121 | MODULE_AUTHOR("Scott Shu, " |
diff --git a/drivers/mmc/host/sdhci-dove.c b/drivers/mmc/host/sdhci-dove.c index a81312c91f70..46fd1fd1b605 100644 --- a/drivers/mmc/host/sdhci-dove.c +++ b/drivers/mmc/host/sdhci-dove.c | |||
@@ -88,17 +88,7 @@ static struct platform_driver sdhci_dove_driver = { | |||
88 | .remove = __devexit_p(sdhci_dove_remove), | 88 | .remove = __devexit_p(sdhci_dove_remove), |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static int __init sdhci_dove_init(void) | 91 | module_platform_driver(sdhci_dove_driver); |
92 | { | ||
93 | return platform_driver_register(&sdhci_dove_driver); | ||
94 | } | ||
95 | module_init(sdhci_dove_init); | ||
96 | |||
97 | static void __exit sdhci_dove_exit(void) | ||
98 | { | ||
99 | platform_driver_unregister(&sdhci_dove_driver); | ||
100 | } | ||
101 | module_exit(sdhci_dove_exit); | ||
102 | 92 | ||
103 | MODULE_DESCRIPTION("SDHCI driver for Dove"); | 93 | MODULE_DESCRIPTION("SDHCI driver for Dove"); |
104 | MODULE_AUTHOR("Saeed Bishara <saeed@marvell.com>, " | 94 | MODULE_AUTHOR("Saeed Bishara <saeed@marvell.com>, " |
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 38ebc4ea259f..d601e41af282 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c | |||
@@ -606,17 +606,7 @@ static struct platform_driver sdhci_esdhc_imx_driver = { | |||
606 | .remove = __devexit_p(sdhci_esdhc_imx_remove), | 606 | .remove = __devexit_p(sdhci_esdhc_imx_remove), |
607 | }; | 607 | }; |
608 | 608 | ||
609 | static int __init sdhci_esdhc_imx_init(void) | 609 | module_platform_driver(sdhci_esdhc_imx_driver); |
610 | { | ||
611 | return platform_driver_register(&sdhci_esdhc_imx_driver); | ||
612 | } | ||
613 | module_init(sdhci_esdhc_imx_init); | ||
614 | |||
615 | static void __exit sdhci_esdhc_imx_exit(void) | ||
616 | { | ||
617 | platform_driver_unregister(&sdhci_esdhc_imx_driver); | ||
618 | } | ||
619 | module_exit(sdhci_esdhc_imx_exit); | ||
620 | 610 | ||
621 | MODULE_DESCRIPTION("SDHCI driver for Freescale i.MX eSDHC"); | 611 | MODULE_DESCRIPTION("SDHCI driver for Freescale i.MX eSDHC"); |
622 | MODULE_AUTHOR("Wolfram Sang <w.sang@pengutronix.de>"); | 612 | MODULE_AUTHOR("Wolfram Sang <w.sang@pengutronix.de>"); |
diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 01e5f627e0f0..ff4adc018041 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c | |||
@@ -131,17 +131,7 @@ static struct platform_driver sdhci_esdhc_driver = { | |||
131 | .remove = __devexit_p(sdhci_esdhc_remove), | 131 | .remove = __devexit_p(sdhci_esdhc_remove), |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static int __init sdhci_esdhc_init(void) | 134 | module_platform_driver(sdhci_esdhc_driver); |
135 | { | ||
136 | return platform_driver_register(&sdhci_esdhc_driver); | ||
137 | } | ||
138 | module_init(sdhci_esdhc_init); | ||
139 | |||
140 | static void __exit sdhci_esdhc_exit(void) | ||
141 | { | ||
142 | platform_driver_unregister(&sdhci_esdhc_driver); | ||
143 | } | ||
144 | module_exit(sdhci_esdhc_exit); | ||
145 | 135 | ||
146 | MODULE_DESCRIPTION("SDHCI OF driver for Freescale MPC eSDHC"); | 136 | MODULE_DESCRIPTION("SDHCI OF driver for Freescale MPC eSDHC"); |
147 | MODULE_AUTHOR("Xiaobo Xie <X.Xie@freescale.com>, " | 137 | MODULE_AUTHOR("Xiaobo Xie <X.Xie@freescale.com>, " |
diff --git a/drivers/mmc/host/sdhci-of-hlwd.c b/drivers/mmc/host/sdhci-of-hlwd.c index 3619adc7d9fc..0ce088ae0228 100644 --- a/drivers/mmc/host/sdhci-of-hlwd.c +++ b/drivers/mmc/host/sdhci-of-hlwd.c | |||
@@ -93,17 +93,7 @@ static struct platform_driver sdhci_hlwd_driver = { | |||
93 | .remove = __devexit_p(sdhci_hlwd_remove), | 93 | .remove = __devexit_p(sdhci_hlwd_remove), |
94 | }; | 94 | }; |
95 | 95 | ||
96 | static int __init sdhci_hlwd_init(void) | 96 | module_platform_driver(sdhci_hlwd_driver); |
97 | { | ||
98 | return platform_driver_register(&sdhci_hlwd_driver); | ||
99 | } | ||
100 | module_init(sdhci_hlwd_init); | ||
101 | |||
102 | static void __exit sdhci_hlwd_exit(void) | ||
103 | { | ||
104 | platform_driver_unregister(&sdhci_hlwd_driver); | ||
105 | } | ||
106 | module_exit(sdhci_hlwd_exit); | ||
107 | 97 | ||
108 | MODULE_DESCRIPTION("Nintendo Wii SDHCI OF driver"); | 98 | MODULE_DESCRIPTION("Nintendo Wii SDHCI OF driver"); |
109 | MODULE_AUTHOR("The GameCube Linux Team, Albert Herranz"); | 99 | MODULE_AUTHOR("The GameCube Linux Team, Albert Herranz"); |
diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mmc/host/sdhci-pxav2.c index 7a039c3cb1f1..dbb75bfbcffb 100644 --- a/drivers/mmc/host/sdhci-pxav2.c +++ b/drivers/mmc/host/sdhci-pxav2.c | |||
@@ -223,18 +223,8 @@ static struct platform_driver sdhci_pxav2_driver = { | |||
223 | .probe = sdhci_pxav2_probe, | 223 | .probe = sdhci_pxav2_probe, |
224 | .remove = __devexit_p(sdhci_pxav2_remove), | 224 | .remove = __devexit_p(sdhci_pxav2_remove), |
225 | }; | 225 | }; |
226 | static int __init sdhci_pxav2_init(void) | ||
227 | { | ||
228 | return platform_driver_register(&sdhci_pxav2_driver); | ||
229 | } | ||
230 | |||
231 | static void __exit sdhci_pxav2_exit(void) | ||
232 | { | ||
233 | platform_driver_unregister(&sdhci_pxav2_driver); | ||
234 | } | ||
235 | 226 | ||
236 | module_init(sdhci_pxav2_init); | 227 | module_platform_driver(sdhci_pxav2_driver); |
237 | module_exit(sdhci_pxav2_exit); | ||
238 | 228 | ||
239 | MODULE_DESCRIPTION("SDHCI driver for pxav2"); | 229 | MODULE_DESCRIPTION("SDHCI driver for pxav2"); |
240 | MODULE_AUTHOR("Marvell International Ltd."); | 230 | MODULE_AUTHOR("Marvell International Ltd."); |
diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index 15673a7ee6a5..f29695683556 100644 --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sdhci-pxav3.c | |||
@@ -269,18 +269,8 @@ static struct platform_driver sdhci_pxav3_driver = { | |||
269 | .probe = sdhci_pxav3_probe, | 269 | .probe = sdhci_pxav3_probe, |
270 | .remove = __devexit_p(sdhci_pxav3_remove), | 270 | .remove = __devexit_p(sdhci_pxav3_remove), |
271 | }; | 271 | }; |
272 | static int __init sdhci_pxav3_init(void) | ||
273 | { | ||
274 | return platform_driver_register(&sdhci_pxav3_driver); | ||
275 | } | ||
276 | |||
277 | static void __exit sdhci_pxav3_exit(void) | ||
278 | { | ||
279 | platform_driver_unregister(&sdhci_pxav3_driver); | ||
280 | } | ||
281 | 272 | ||
282 | module_init(sdhci_pxav3_init); | 273 | module_platform_driver(sdhci_pxav3_driver); |
283 | module_exit(sdhci_pxav3_exit); | ||
284 | 274 | ||
285 | MODULE_DESCRIPTION("SDHCI driver for pxav3"); | 275 | MODULE_DESCRIPTION("SDHCI driver for pxav3"); |
286 | MODULE_AUTHOR("Marvell International Ltd."); | 276 | MODULE_AUTHOR("Marvell International Ltd."); |
diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index 0d33ff0d67fb..55c1e870da83 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c | |||
@@ -657,18 +657,7 @@ static struct platform_driver sdhci_s3c_driver = { | |||
657 | }, | 657 | }, |
658 | }; | 658 | }; |
659 | 659 | ||
660 | static int __init sdhci_s3c_init(void) | 660 | module_platform_driver(sdhci_s3c_driver); |
661 | { | ||
662 | return platform_driver_register(&sdhci_s3c_driver); | ||
663 | } | ||
664 | |||
665 | static void __exit sdhci_s3c_exit(void) | ||
666 | { | ||
667 | platform_driver_unregister(&sdhci_s3c_driver); | ||
668 | } | ||
669 | |||
670 | module_init(sdhci_s3c_init); | ||
671 | module_exit(sdhci_s3c_exit); | ||
672 | 661 | ||
673 | MODULE_DESCRIPTION("Samsung SDHCI (HSMMC) glue"); | 662 | MODULE_DESCRIPTION("Samsung SDHCI (HSMMC) glue"); |
674 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 663 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c index dee70b66305a..883548eaa09e 100644 --- a/drivers/mmc/host/sdhci-spear.c +++ b/drivers/mmc/host/sdhci-spear.c | |||
@@ -320,17 +320,7 @@ static struct platform_driver sdhci_driver = { | |||
320 | .remove = __devexit_p(sdhci_remove), | 320 | .remove = __devexit_p(sdhci_remove), |
321 | }; | 321 | }; |
322 | 322 | ||
323 | static int __init sdhci_init(void) | 323 | module_platform_driver(sdhci_driver); |
324 | { | ||
325 | return platform_driver_register(&sdhci_driver); | ||
326 | } | ||
327 | module_init(sdhci_init); | ||
328 | |||
329 | static void __exit sdhci_exit(void) | ||
330 | { | ||
331 | platform_driver_unregister(&sdhci_driver); | ||
332 | } | ||
333 | module_exit(sdhci_exit); | ||
334 | 324 | ||
335 | MODULE_DESCRIPTION("SPEAr Secure Digital Host Controller Interface driver"); | 325 | MODULE_DESCRIPTION("SPEAr Secure Digital Host Controller Interface driver"); |
336 | MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); | 326 | MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); |
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index e2e18d3f949c..78a36eba4df0 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -324,17 +324,7 @@ static struct platform_driver sdhci_tegra_driver = { | |||
324 | .remove = __devexit_p(sdhci_tegra_remove), | 324 | .remove = __devexit_p(sdhci_tegra_remove), |
325 | }; | 325 | }; |
326 | 326 | ||
327 | static int __init sdhci_tegra_init(void) | 327 | module_platform_driver(sdhci_tegra_driver); |
328 | { | ||
329 | return platform_driver_register(&sdhci_tegra_driver); | ||
330 | } | ||
331 | module_init(sdhci_tegra_init); | ||
332 | |||
333 | static void __exit sdhci_tegra_exit(void) | ||
334 | { | ||
335 | platform_driver_unregister(&sdhci_tegra_driver); | ||
336 | } | ||
337 | module_exit(sdhci_tegra_exit); | ||
338 | 328 | ||
339 | MODULE_DESCRIPTION("SDHCI driver for Tegra"); | 329 | MODULE_DESCRIPTION("SDHCI driver for Tegra"); |
340 | MODULE_AUTHOR(" Google, Inc."); | 330 | MODULE_AUTHOR(" Google, Inc."); |
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 2ec23b0053b6..7bec007bcefa 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c | |||
@@ -1207,19 +1207,7 @@ static struct platform_driver sh_mmcif_driver = { | |||
1207 | }, | 1207 | }, |
1208 | }; | 1208 | }; |
1209 | 1209 | ||
1210 | static int __init sh_mmcif_init(void) | 1210 | module_platform_driver(sh_mmcif_driver); |
1211 | { | ||
1212 | return platform_driver_register(&sh_mmcif_driver); | ||
1213 | } | ||
1214 | |||
1215 | static void __exit sh_mmcif_exit(void) | ||
1216 | { | ||
1217 | platform_driver_unregister(&sh_mmcif_driver); | ||
1218 | } | ||
1219 | |||
1220 | module_init(sh_mmcif_init); | ||
1221 | module_exit(sh_mmcif_exit); | ||
1222 | |||
1223 | 1211 | ||
1224 | MODULE_DESCRIPTION("SuperH on-chip MMC/eMMC interface driver"); | 1212 | MODULE_DESCRIPTION("SuperH on-chip MMC/eMMC interface driver"); |
1225 | MODULE_LICENSE("GPL"); | 1213 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 41ae6466bd83..58da3c44acc5 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -282,18 +282,7 @@ static struct platform_driver sh_mobile_sdhi_driver = { | |||
282 | .remove = __devexit_p(sh_mobile_sdhi_remove), | 282 | .remove = __devexit_p(sh_mobile_sdhi_remove), |
283 | }; | 283 | }; |
284 | 284 | ||
285 | static int __init sh_mobile_sdhi_init(void) | 285 | module_platform_driver(sh_mobile_sdhi_driver); |
286 | { | ||
287 | return platform_driver_register(&sh_mobile_sdhi_driver); | ||
288 | } | ||
289 | |||
290 | static void __exit sh_mobile_sdhi_exit(void) | ||
291 | { | ||
292 | platform_driver_unregister(&sh_mobile_sdhi_driver); | ||
293 | } | ||
294 | |||
295 | module_init(sh_mobile_sdhi_init); | ||
296 | module_exit(sh_mobile_sdhi_exit); | ||
297 | 286 | ||
298 | MODULE_DESCRIPTION("SuperH Mobile SDHI driver"); | 287 | MODULE_DESCRIPTION("SuperH Mobile SDHI driver"); |
299 | MODULE_AUTHOR("Magnus Damm"); | 288 | MODULE_AUTHOR("Magnus Damm"); |
diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index a4ea10242787..113ce6c9cf32 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c | |||
@@ -138,19 +138,7 @@ static struct platform_driver tmio_mmc_driver = { | |||
138 | .resume = tmio_mmc_resume, | 138 | .resume = tmio_mmc_resume, |
139 | }; | 139 | }; |
140 | 140 | ||
141 | 141 | module_platform_driver(tmio_mmc_driver); | |
142 | static int __init tmio_mmc_init(void) | ||
143 | { | ||
144 | return platform_driver_register(&tmio_mmc_driver); | ||
145 | } | ||
146 | |||
147 | static void __exit tmio_mmc_exit(void) | ||
148 | { | ||
149 | platform_driver_unregister(&tmio_mmc_driver); | ||
150 | } | ||
151 | |||
152 | module_init(tmio_mmc_init); | ||
153 | module_exit(tmio_mmc_exit); | ||
154 | 142 | ||
155 | MODULE_DESCRIPTION("Toshiba TMIO SD/MMC driver"); | 143 | MODULE_DESCRIPTION("Toshiba TMIO SD/MMC driver"); |
156 | MODULE_AUTHOR("Ian Molton <spyro@f2s.com>"); | 144 | MODULE_AUTHOR("Ian Molton <spyro@f2s.com>"); |