diff options
-rw-r--r-- | drivers/net/arcnet/com20020_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/can/sja1000/ems_pcmcia.c | 13 | ||||
-rw-r--r-- | drivers/net/can/sja1000/peak_pcmcia.c | 13 | ||||
-rw-r--r-- | drivers/net/ethernet/3com/3c574_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/3com/3c589_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/8390/axnet_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/8390/pcnet_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/amd/nmclan_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/fujitsu/fmvj18x_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/smsc/smc91c92_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/xircom/xirc2ps_cs.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/airo_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/atmel_cs.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/b43/pcmcia.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_cs.c | 15 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/if_cs.c | 25 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco_cs.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/spectrum_cs.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/wl3501_cs.c | 14 |
19 files changed, 22 insertions, 250 deletions
diff --git a/drivers/net/arcnet/com20020_cs.c b/drivers/net/arcnet/com20020_cs.c index 5bed4c4e2508..74dc1875f9cd 100644 --- a/drivers/net/arcnet/com20020_cs.c +++ b/drivers/net/arcnet/com20020_cs.c | |||
@@ -333,16 +333,4 @@ static struct pcmcia_driver com20020_cs_driver = { | |||
333 | .suspend = com20020_suspend, | 333 | .suspend = com20020_suspend, |
334 | .resume = com20020_resume, | 334 | .resume = com20020_resume, |
335 | }; | 335 | }; |
336 | 336 | module_pcmcia_driver(com20020_cs_driver); | |
337 | static int __init init_com20020_cs(void) | ||
338 | { | ||
339 | return pcmcia_register_driver(&com20020_cs_driver); | ||
340 | } | ||
341 | |||
342 | static void __exit exit_com20020_cs(void) | ||
343 | { | ||
344 | pcmcia_unregister_driver(&com20020_cs_driver); | ||
345 | } | ||
346 | |||
347 | module_init(init_com20020_cs); | ||
348 | module_exit(exit_com20020_cs); | ||
diff --git a/drivers/net/can/sja1000/ems_pcmcia.c b/drivers/net/can/sja1000/ems_pcmcia.c index 5c2f3fbbf5ae..321c27e1c7fc 100644 --- a/drivers/net/can/sja1000/ems_pcmcia.c +++ b/drivers/net/can/sja1000/ems_pcmcia.c | |||
@@ -316,15 +316,4 @@ static struct pcmcia_driver ems_pcmcia_driver = { | |||
316 | .remove = ems_pcmcia_remove, | 316 | .remove = ems_pcmcia_remove, |
317 | .id_table = ems_pcmcia_tbl, | 317 | .id_table = ems_pcmcia_tbl, |
318 | }; | 318 | }; |
319 | 319 | module_pcmcia_driver(ems_pcmcia_driver); | |
320 | static int __init ems_pcmcia_init(void) | ||
321 | { | ||
322 | return pcmcia_register_driver(&ems_pcmcia_driver); | ||
323 | } | ||
324 | module_init(ems_pcmcia_init); | ||
325 | |||
326 | static void __exit ems_pcmcia_exit(void) | ||
327 | { | ||
328 | pcmcia_unregister_driver(&ems_pcmcia_driver); | ||
329 | } | ||
330 | module_exit(ems_pcmcia_exit); | ||
diff --git a/drivers/net/can/sja1000/peak_pcmcia.c b/drivers/net/can/sja1000/peak_pcmcia.c index 1a7020ba37f5..0a707f70661c 100644 --- a/drivers/net/can/sja1000/peak_pcmcia.c +++ b/drivers/net/can/sja1000/peak_pcmcia.c | |||
@@ -740,15 +740,4 @@ static struct pcmcia_driver pcan_driver = { | |||
740 | .remove = pcan_remove, | 740 | .remove = pcan_remove, |
741 | .id_table = pcan_table, | 741 | .id_table = pcan_table, |
742 | }; | 742 | }; |
743 | 743 | module_pcmcia_driver(pcan_driver); | |
744 | static int __init pcan_init(void) | ||
745 | { | ||
746 | return pcmcia_register_driver(&pcan_driver); | ||
747 | } | ||
748 | module_init(pcan_init); | ||
749 | |||
750 | static void __exit pcan_exit(void) | ||
751 | { | ||
752 | pcmcia_unregister_driver(&pcan_driver); | ||
753 | } | ||
754 | module_exit(pcan_exit); | ||
diff --git a/drivers/net/ethernet/3com/3c574_cs.c b/drivers/net/ethernet/3com/3c574_cs.c index ffd8de28a76a..6fc994fa4abe 100644 --- a/drivers/net/ethernet/3com/3c574_cs.c +++ b/drivers/net/ethernet/3com/3c574_cs.c | |||
@@ -1165,16 +1165,4 @@ static struct pcmcia_driver tc574_driver = { | |||
1165 | .suspend = tc574_suspend, | 1165 | .suspend = tc574_suspend, |
1166 | .resume = tc574_resume, | 1166 | .resume = tc574_resume, |
1167 | }; | 1167 | }; |
1168 | 1168 | module_pcmcia_driver(tc574_driver); | |
1169 | static int __init init_tc574(void) | ||
1170 | { | ||
1171 | return pcmcia_register_driver(&tc574_driver); | ||
1172 | } | ||
1173 | |||
1174 | static void __exit exit_tc574(void) | ||
1175 | { | ||
1176 | pcmcia_unregister_driver(&tc574_driver); | ||
1177 | } | ||
1178 | |||
1179 | module_init(init_tc574); | ||
1180 | module_exit(exit_tc574); | ||
diff --git a/drivers/net/ethernet/3com/3c589_cs.c b/drivers/net/ethernet/3com/3c589_cs.c index a556c01e011b..078480aaa168 100644 --- a/drivers/net/ethernet/3com/3c589_cs.c +++ b/drivers/net/ethernet/3com/3c589_cs.c | |||
@@ -928,16 +928,4 @@ static struct pcmcia_driver tc589_driver = { | |||
928 | .suspend = tc589_suspend, | 928 | .suspend = tc589_suspend, |
929 | .resume = tc589_resume, | 929 | .resume = tc589_resume, |
930 | }; | 930 | }; |
931 | 931 | module_pcmcia_driver(tc589_driver); | |
932 | static int __init init_tc589(void) | ||
933 | { | ||
934 | return pcmcia_register_driver(&tc589_driver); | ||
935 | } | ||
936 | |||
937 | static void __exit exit_tc589(void) | ||
938 | { | ||
939 | pcmcia_unregister_driver(&tc589_driver); | ||
940 | } | ||
941 | |||
942 | module_init(init_tc589); | ||
943 | module_exit(exit_tc589); | ||
diff --git a/drivers/net/ethernet/8390/axnet_cs.c b/drivers/net/ethernet/8390/axnet_cs.c index e1b3941bd149..d801c1410fb0 100644 --- a/drivers/net/ethernet/8390/axnet_cs.c +++ b/drivers/net/ethernet/8390/axnet_cs.c | |||
@@ -728,19 +728,7 @@ static struct pcmcia_driver axnet_cs_driver = { | |||
728 | .suspend = axnet_suspend, | 728 | .suspend = axnet_suspend, |
729 | .resume = axnet_resume, | 729 | .resume = axnet_resume, |
730 | }; | 730 | }; |
731 | 731 | module_pcmcia_driver(axnet_cs_driver); | |
732 | static int __init init_axnet_cs(void) | ||
733 | { | ||
734 | return pcmcia_register_driver(&axnet_cs_driver); | ||
735 | } | ||
736 | |||
737 | static void __exit exit_axnet_cs(void) | ||
738 | { | ||
739 | pcmcia_unregister_driver(&axnet_cs_driver); | ||
740 | } | ||
741 | |||
742 | module_init(init_axnet_cs); | ||
743 | module_exit(exit_axnet_cs); | ||
744 | 732 | ||
745 | /*====================================================================*/ | 733 | /*====================================================================*/ |
746 | 734 | ||
diff --git a/drivers/net/ethernet/8390/pcnet_cs.c b/drivers/net/ethernet/8390/pcnet_cs.c index de1af0bfed4c..46c5aadaca8e 100644 --- a/drivers/net/ethernet/8390/pcnet_cs.c +++ b/drivers/net/ethernet/8390/pcnet_cs.c | |||
@@ -1694,16 +1694,4 @@ static struct pcmcia_driver pcnet_driver = { | |||
1694 | .suspend = pcnet_suspend, | 1694 | .suspend = pcnet_suspend, |
1695 | .resume = pcnet_resume, | 1695 | .resume = pcnet_resume, |
1696 | }; | 1696 | }; |
1697 | 1697 | module_pcmcia_driver(pcnet_driver); | |
1698 | static int __init init_pcnet_cs(void) | ||
1699 | { | ||
1700 | return pcmcia_register_driver(&pcnet_driver); | ||
1701 | } | ||
1702 | |||
1703 | static void __exit exit_pcnet_cs(void) | ||
1704 | { | ||
1705 | pcmcia_unregister_driver(&pcnet_driver); | ||
1706 | } | ||
1707 | |||
1708 | module_init(init_pcnet_cs); | ||
1709 | module_exit(exit_pcnet_cs); | ||
diff --git a/drivers/net/ethernet/amd/nmclan_cs.c b/drivers/net/ethernet/amd/nmclan_cs.c index 9f59bf63514b..d4ed89130c52 100644 --- a/drivers/net/ethernet/amd/nmclan_cs.c +++ b/drivers/net/ethernet/amd/nmclan_cs.c | |||
@@ -1508,16 +1508,4 @@ static struct pcmcia_driver nmclan_cs_driver = { | |||
1508 | .suspend = nmclan_suspend, | 1508 | .suspend = nmclan_suspend, |
1509 | .resume = nmclan_resume, | 1509 | .resume = nmclan_resume, |
1510 | }; | 1510 | }; |
1511 | 1511 | module_pcmcia_driver(nmclan_cs_driver); | |
1512 | static int __init init_nmclan_cs(void) | ||
1513 | { | ||
1514 | return pcmcia_register_driver(&nmclan_cs_driver); | ||
1515 | } | ||
1516 | |||
1517 | static void __exit exit_nmclan_cs(void) | ||
1518 | { | ||
1519 | pcmcia_unregister_driver(&nmclan_cs_driver); | ||
1520 | } | ||
1521 | |||
1522 | module_init(init_nmclan_cs); | ||
1523 | module_exit(exit_nmclan_cs); | ||
diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c index 2418faf2251a..ab98b77df309 100644 --- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c +++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c | |||
@@ -705,19 +705,7 @@ static struct pcmcia_driver fmvj18x_cs_driver = { | |||
705 | .suspend = fmvj18x_suspend, | 705 | .suspend = fmvj18x_suspend, |
706 | .resume = fmvj18x_resume, | 706 | .resume = fmvj18x_resume, |
707 | }; | 707 | }; |
708 | 708 | module_pcmcia_driver(fmvj18x_cs_driver); | |
709 | static int __init init_fmvj18x_cs(void) | ||
710 | { | ||
711 | return pcmcia_register_driver(&fmvj18x_cs_driver); | ||
712 | } | ||
713 | |||
714 | static void __exit exit_fmvj18x_cs(void) | ||
715 | { | ||
716 | pcmcia_unregister_driver(&fmvj18x_cs_driver); | ||
717 | } | ||
718 | |||
719 | module_init(init_fmvj18x_cs); | ||
720 | module_exit(exit_fmvj18x_cs); | ||
721 | 709 | ||
722 | /*====================================================================*/ | 710 | /*====================================================================*/ |
723 | 711 | ||
diff --git a/drivers/net/ethernet/smsc/smc91c92_cs.c b/drivers/net/ethernet/smsc/smc91c92_cs.c index 04393b5fef71..656d2e2ebfc9 100644 --- a/drivers/net/ethernet/smsc/smc91c92_cs.c +++ b/drivers/net/ethernet/smsc/smc91c92_cs.c | |||
@@ -2054,16 +2054,4 @@ static struct pcmcia_driver smc91c92_cs_driver = { | |||
2054 | .suspend = smc91c92_suspend, | 2054 | .suspend = smc91c92_suspend, |
2055 | .resume = smc91c92_resume, | 2055 | .resume = smc91c92_resume, |
2056 | }; | 2056 | }; |
2057 | 2057 | module_pcmcia_driver(smc91c92_cs_driver); | |
2058 | static int __init init_smc91c92_cs(void) | ||
2059 | { | ||
2060 | return pcmcia_register_driver(&smc91c92_cs_driver); | ||
2061 | } | ||
2062 | |||
2063 | static void __exit exit_smc91c92_cs(void) | ||
2064 | { | ||
2065 | pcmcia_unregister_driver(&smc91c92_cs_driver); | ||
2066 | } | ||
2067 | |||
2068 | module_init(init_smc91c92_cs); | ||
2069 | module_exit(exit_smc91c92_cs); | ||
diff --git a/drivers/net/ethernet/xircom/xirc2ps_cs.c b/drivers/net/ethernet/xircom/xirc2ps_cs.c index 98e09d0d3ce2..1025b4e937d2 100644 --- a/drivers/net/ethernet/xircom/xirc2ps_cs.c +++ b/drivers/net/ethernet/xircom/xirc2ps_cs.c | |||
@@ -1775,21 +1775,7 @@ static struct pcmcia_driver xirc2ps_cs_driver = { | |||
1775 | .suspend = xirc2ps_suspend, | 1775 | .suspend = xirc2ps_suspend, |
1776 | .resume = xirc2ps_resume, | 1776 | .resume = xirc2ps_resume, |
1777 | }; | 1777 | }; |
1778 | 1778 | module_pcmcia_driver(xirc2ps_cs_driver); | |
1779 | static int __init | ||
1780 | init_xirc2ps_cs(void) | ||
1781 | { | ||
1782 | return pcmcia_register_driver(&xirc2ps_cs_driver); | ||
1783 | } | ||
1784 | |||
1785 | static void __exit | ||
1786 | exit_xirc2ps_cs(void) | ||
1787 | { | ||
1788 | pcmcia_unregister_driver(&xirc2ps_cs_driver); | ||
1789 | } | ||
1790 | |||
1791 | module_init(init_xirc2ps_cs); | ||
1792 | module_exit(exit_xirc2ps_cs); | ||
1793 | 1779 | ||
1794 | #ifndef MODULE | 1780 | #ifndef MODULE |
1795 | static int __init setup_xirc2ps_cs(char *str) | 1781 | static int __init setup_xirc2ps_cs(char *str) |
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c index 956024a636e6..14128fd265ac 100644 --- a/drivers/net/wireless/airo_cs.c +++ b/drivers/net/wireless/airo_cs.c | |||
@@ -180,16 +180,7 @@ static struct pcmcia_driver airo_driver = { | |||
180 | .suspend = airo_suspend, | 180 | .suspend = airo_suspend, |
181 | .resume = airo_resume, | 181 | .resume = airo_resume, |
182 | }; | 182 | }; |
183 | 183 | module_pcmcia_driver(airo_driver); | |
184 | static int __init airo_cs_init(void) | ||
185 | { | ||
186 | return pcmcia_register_driver(&airo_driver); | ||
187 | } | ||
188 | |||
189 | static void __exit airo_cs_cleanup(void) | ||
190 | { | ||
191 | pcmcia_unregister_driver(&airo_driver); | ||
192 | } | ||
193 | 184 | ||
194 | /* | 185 | /* |
195 | This program is free software; you can redistribute it and/or | 186 | This program is free software; you can redistribute it and/or |
@@ -229,6 +220,3 @@ static void __exit airo_cs_cleanup(void) | |||
229 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 220 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
230 | POSSIBILITY OF SUCH DAMAGE. | 221 | POSSIBILITY OF SUCH DAMAGE. |
231 | */ | 222 | */ |
232 | |||
233 | module_init(airo_cs_init); | ||
234 | module_exit(airo_cs_cleanup); | ||
diff --git a/drivers/net/wireless/atmel_cs.c b/drivers/net/wireless/atmel_cs.c index b42930f457c2..522572219217 100644 --- a/drivers/net/wireless/atmel_cs.c +++ b/drivers/net/wireless/atmel_cs.c | |||
@@ -245,16 +245,7 @@ static struct pcmcia_driver atmel_driver = { | |||
245 | .suspend = atmel_suspend, | 245 | .suspend = atmel_suspend, |
246 | .resume = atmel_resume, | 246 | .resume = atmel_resume, |
247 | }; | 247 | }; |
248 | 248 | module_pcmcia_driver(atmel_driver); | |
249 | static int __init atmel_cs_init(void) | ||
250 | { | ||
251 | return pcmcia_register_driver(&atmel_driver); | ||
252 | } | ||
253 | |||
254 | static void __exit atmel_cs_cleanup(void) | ||
255 | { | ||
256 | pcmcia_unregister_driver(&atmel_driver); | ||
257 | } | ||
258 | 249 | ||
259 | /* | 250 | /* |
260 | This program is free software; you can redistribute it and/or | 251 | This program is free software; you can redistribute it and/or |
@@ -294,6 +285,3 @@ static void __exit atmel_cs_cleanup(void) | |||
294 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 285 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
295 | POSSIBILITY OF SUCH DAMAGE. | 286 | POSSIBILITY OF SUCH DAMAGE. |
296 | */ | 287 | */ |
297 | |||
298 | module_init(atmel_cs_init); | ||
299 | module_exit(atmel_cs_cleanup); | ||
diff --git a/drivers/net/wireless/b43/pcmcia.c b/drivers/net/wireless/b43/pcmcia.c index f2ea2ceec8a9..55f2bd7f8f74 100644 --- a/drivers/net/wireless/b43/pcmcia.c +++ b/drivers/net/wireless/b43/pcmcia.c | |||
@@ -130,6 +130,10 @@ static struct pcmcia_driver b43_pcmcia_driver = { | |||
130 | .resume = b43_pcmcia_resume, | 130 | .resume = b43_pcmcia_resume, |
131 | }; | 131 | }; |
132 | 132 | ||
133 | /* | ||
134 | * These are not module init/exit functions! | ||
135 | * The module_pcmcia_driver() helper cannot be used here. | ||
136 | */ | ||
133 | int b43_pcmcia_init(void) | 137 | int b43_pcmcia_init(void) |
134 | { | 138 | { |
135 | return pcmcia_register_driver(&b43_pcmcia_driver); | 139 | return pcmcia_register_driver(&b43_pcmcia_driver); |
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index 89e9d3a78c3c..56cd01ca8ad0 100644 --- a/drivers/net/wireless/hostap/hostap_cs.c +++ b/drivers/net/wireless/hostap/hostap_cs.c | |||
@@ -709,17 +709,4 @@ static struct pcmcia_driver hostap_driver = { | |||
709 | .suspend = hostap_cs_suspend, | 709 | .suspend = hostap_cs_suspend, |
710 | .resume = hostap_cs_resume, | 710 | .resume = hostap_cs_resume, |
711 | }; | 711 | }; |
712 | 712 | module_pcmcia_driver(hostap_driver); | |
713 | static int __init init_prism2_pccard(void) | ||
714 | { | ||
715 | return pcmcia_register_driver(&hostap_driver); | ||
716 | } | ||
717 | |||
718 | static void __exit exit_prism2_pccard(void) | ||
719 | { | ||
720 | pcmcia_unregister_driver(&hostap_driver); | ||
721 | } | ||
722 | |||
723 | |||
724 | module_init(init_prism2_pccard); | ||
725 | module_exit(exit_prism2_pccard); | ||
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c index 16beaf39dc53..c94dd6802672 100644 --- a/drivers/net/wireless/libertas/if_cs.c +++ b/drivers/net/wireless/libertas/if_cs.c | |||
@@ -999,7 +999,6 @@ static const struct pcmcia_device_id if_cs_ids[] = { | |||
999 | }; | 999 | }; |
1000 | MODULE_DEVICE_TABLE(pcmcia, if_cs_ids); | 1000 | MODULE_DEVICE_TABLE(pcmcia, if_cs_ids); |
1001 | 1001 | ||
1002 | |||
1003 | static struct pcmcia_driver lbs_driver = { | 1002 | static struct pcmcia_driver lbs_driver = { |
1004 | .owner = THIS_MODULE, | 1003 | .owner = THIS_MODULE, |
1005 | .name = DRV_NAME, | 1004 | .name = DRV_NAME, |
@@ -1007,26 +1006,4 @@ static struct pcmcia_driver lbs_driver = { | |||
1007 | .remove = if_cs_detach, | 1006 | .remove = if_cs_detach, |
1008 | .id_table = if_cs_ids, | 1007 | .id_table = if_cs_ids, |
1009 | }; | 1008 | }; |
1010 | 1009 | module_pcmcia_driver(lbs_driver); | |
1011 | |||
1012 | static int __init if_cs_init(void) | ||
1013 | { | ||
1014 | int ret; | ||
1015 | |||
1016 | lbs_deb_enter(LBS_DEB_CS); | ||
1017 | ret = pcmcia_register_driver(&lbs_driver); | ||
1018 | lbs_deb_leave(LBS_DEB_CS); | ||
1019 | return ret; | ||
1020 | } | ||
1021 | |||
1022 | |||
1023 | static void __exit if_cs_exit(void) | ||
1024 | { | ||
1025 | lbs_deb_enter(LBS_DEB_CS); | ||
1026 | pcmcia_unregister_driver(&lbs_driver); | ||
1027 | lbs_deb_leave(LBS_DEB_CS); | ||
1028 | } | ||
1029 | |||
1030 | |||
1031 | module_init(if_cs_init); | ||
1032 | module_exit(if_cs_exit); | ||
diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c index d7dbc00bcfbe..d21d95939316 100644 --- a/drivers/net/wireless/orinoco/orinoco_cs.c +++ b/drivers/net/wireless/orinoco/orinoco_cs.c | |||
@@ -338,18 +338,4 @@ static struct pcmcia_driver orinoco_driver = { | |||
338 | .suspend = orinoco_cs_suspend, | 338 | .suspend = orinoco_cs_suspend, |
339 | .resume = orinoco_cs_resume, | 339 | .resume = orinoco_cs_resume, |
340 | }; | 340 | }; |
341 | 341 | module_pcmcia_driver(orinoco_driver); | |
342 | static int __init | ||
343 | init_orinoco_cs(void) | ||
344 | { | ||
345 | return pcmcia_register_driver(&orinoco_driver); | ||
346 | } | ||
347 | |||
348 | static void __exit | ||
349 | exit_orinoco_cs(void) | ||
350 | { | ||
351 | pcmcia_unregister_driver(&orinoco_driver); | ||
352 | } | ||
353 | |||
354 | module_init(init_orinoco_cs); | ||
355 | module_exit(exit_orinoco_cs); | ||
diff --git a/drivers/net/wireless/orinoco/spectrum_cs.c b/drivers/net/wireless/orinoco/spectrum_cs.c index 6e28ee4e9c52..e2264bc12ebf 100644 --- a/drivers/net/wireless/orinoco/spectrum_cs.c +++ b/drivers/net/wireless/orinoco/spectrum_cs.c | |||
@@ -318,18 +318,4 @@ static struct pcmcia_driver orinoco_driver = { | |||
318 | .resume = spectrum_cs_resume, | 318 | .resume = spectrum_cs_resume, |
319 | .id_table = spectrum_cs_ids, | 319 | .id_table = spectrum_cs_ids, |
320 | }; | 320 | }; |
321 | 321 | module_pcmcia_driver(orinoco_driver); | |
322 | static int __init | ||
323 | init_spectrum_cs(void) | ||
324 | { | ||
325 | return pcmcia_register_driver(&orinoco_driver); | ||
326 | } | ||
327 | |||
328 | static void __exit | ||
329 | exit_spectrum_cs(void) | ||
330 | { | ||
331 | pcmcia_unregister_driver(&orinoco_driver); | ||
332 | } | ||
333 | |||
334 | module_init(init_spectrum_cs); | ||
335 | module_exit(exit_spectrum_cs); | ||
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index 730186d0449b..38d2089f338a 100644 --- a/drivers/net/wireless/wl3501_cs.c +++ b/drivers/net/wireless/wl3501_cs.c | |||
@@ -2013,19 +2013,7 @@ static struct pcmcia_driver wl3501_driver = { | |||
2013 | .suspend = wl3501_suspend, | 2013 | .suspend = wl3501_suspend, |
2014 | .resume = wl3501_resume, | 2014 | .resume = wl3501_resume, |
2015 | }; | 2015 | }; |
2016 | 2016 | module_pcmcia_driver(wl3501_driver); | |
2017 | static int __init wl3501_init_module(void) | ||
2018 | { | ||
2019 | return pcmcia_register_driver(&wl3501_driver); | ||
2020 | } | ||
2021 | |||
2022 | static void __exit wl3501_exit_module(void) | ||
2023 | { | ||
2024 | pcmcia_unregister_driver(&wl3501_driver); | ||
2025 | } | ||
2026 | |||
2027 | module_init(wl3501_init_module); | ||
2028 | module_exit(wl3501_exit_module); | ||
2029 | 2017 | ||
2030 | MODULE_AUTHOR("Fox Chen <mhchen@golf.ccl.itri.org.tw>, " | 2018 | MODULE_AUTHOR("Fox Chen <mhchen@golf.ccl.itri.org.tw>, " |
2031 | "Arnaldo Carvalho de Melo <acme@conectiva.com.br>," | 2019 | "Arnaldo Carvalho de Melo <acme@conectiva.com.br>," |