diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/usb.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.c | 24 | ||||
-rw-r--r-- | drivers/net/wireless/libertas_tf/if_usb.c | 22 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco_usb.c | 27 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54usb.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8187/dev.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/zd1201.c | 13 |
12 files changed, 12 insertions, 177 deletions
diff --git a/drivers/net/wireless/ath/carl9170/usb.c b/drivers/net/wireless/ath/carl9170/usb.c index 333b69ef2ae2..89821e4835c7 100644 --- a/drivers/net/wireless/ath/carl9170/usb.c +++ b/drivers/net/wireless/ath/carl9170/usb.c | |||
@@ -1161,15 +1161,4 @@ static struct usb_driver carl9170_driver = { | |||
1161 | #endif /* CONFIG_PM */ | 1161 | #endif /* CONFIG_PM */ |
1162 | }; | 1162 | }; |
1163 | 1163 | ||
1164 | static int __init carl9170_usb_init(void) | 1164 | module_usb_driver(carl9170_driver); |
1165 | { | ||
1166 | return usb_register(&carl9170_driver); | ||
1167 | } | ||
1168 | |||
1169 | static void __exit carl9170_usb_exit(void) | ||
1170 | { | ||
1171 | usb_deregister(&carl9170_driver); | ||
1172 | } | ||
1173 | |||
1174 | module_init(carl9170_usb_init); | ||
1175 | module_exit(carl9170_usb_exit); | ||
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index db879c364ebf..b5fbbc7947df 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c | |||
@@ -1184,29 +1184,7 @@ static struct usb_driver if_usb_driver = { | |||
1184 | .reset_resume = if_usb_resume, | 1184 | .reset_resume = if_usb_resume, |
1185 | }; | 1185 | }; |
1186 | 1186 | ||
1187 | static int __init if_usb_init_module(void) | 1187 | module_usb_driver(if_usb_driver); |
1188 | { | ||
1189 | int ret = 0; | ||
1190 | |||
1191 | lbs_deb_enter(LBS_DEB_MAIN); | ||
1192 | |||
1193 | ret = usb_register(&if_usb_driver); | ||
1194 | |||
1195 | lbs_deb_leave_args(LBS_DEB_MAIN, "ret %d", ret); | ||
1196 | return ret; | ||
1197 | } | ||
1198 | |||
1199 | static void __exit if_usb_exit_module(void) | ||
1200 | { | ||
1201 | lbs_deb_enter(LBS_DEB_MAIN); | ||
1202 | |||
1203 | usb_deregister(&if_usb_driver); | ||
1204 | |||
1205 | lbs_deb_leave(LBS_DEB_MAIN); | ||
1206 | } | ||
1207 | |||
1208 | module_init(if_usb_init_module); | ||
1209 | module_exit(if_usb_exit_module); | ||
1210 | 1188 | ||
1211 | MODULE_DESCRIPTION("8388 USB WLAN Driver"); | 1189 | MODULE_DESCRIPTION("8388 USB WLAN Driver"); |
1212 | MODULE_AUTHOR("Marvell International Ltd. and Red Hat, Inc."); | 1190 | MODULE_AUTHOR("Marvell International Ltd. and Red Hat, Inc."); |
diff --git a/drivers/net/wireless/libertas_tf/if_usb.c b/drivers/net/wireless/libertas_tf/if_usb.c index 68202e63873a..aff8b5743af0 100644 --- a/drivers/net/wireless/libertas_tf/if_usb.c +++ b/drivers/net/wireless/libertas_tf/if_usb.c | |||
@@ -924,27 +924,7 @@ static struct usb_driver if_usb_driver = { | |||
924 | .resume = if_usb_resume, | 924 | .resume = if_usb_resume, |
925 | }; | 925 | }; |
926 | 926 | ||
927 | static int __init if_usb_init_module(void) | 927 | module_usb_driver(if_usb_driver); |
928 | { | ||
929 | int ret = 0; | ||
930 | |||
931 | lbtf_deb_enter(LBTF_DEB_MAIN); | ||
932 | |||
933 | ret = usb_register(&if_usb_driver); | ||
934 | |||
935 | lbtf_deb_leave_args(LBTF_DEB_MAIN, "ret %d", ret); | ||
936 | return ret; | ||
937 | } | ||
938 | |||
939 | static void __exit if_usb_exit_module(void) | ||
940 | { | ||
941 | lbtf_deb_enter(LBTF_DEB_MAIN); | ||
942 | usb_deregister(&if_usb_driver); | ||
943 | lbtf_deb_leave(LBTF_DEB_MAIN); | ||
944 | } | ||
945 | |||
946 | module_init(if_usb_init_module); | ||
947 | module_exit(if_usb_exit_module); | ||
948 | 928 | ||
949 | MODULE_DESCRIPTION("8388 USB WLAN Thinfirm Driver"); | 929 | MODULE_DESCRIPTION("8388 USB WLAN Thinfirm Driver"); |
950 | MODULE_AUTHOR("Cozybit Inc."); | 930 | MODULE_AUTHOR("Cozybit Inc."); |
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c index 0793e4265b43..ae8ce56670b6 100644 --- a/drivers/net/wireless/orinoco/orinoco_usb.c +++ b/drivers/net/wireless/orinoco/orinoco_usb.c | |||
@@ -1759,32 +1759,7 @@ static struct usb_driver orinoco_driver = { | |||
1759 | static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION | 1759 | static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION |
1760 | " (Manuel Estrada Sainz)"; | 1760 | " (Manuel Estrada Sainz)"; |
1761 | 1761 | ||
1762 | static int __init ezusb_module_init(void) | 1762 | module_usb_driver(orinoco_driver); |
1763 | { | ||
1764 | int err; | ||
1765 | |||
1766 | printk(KERN_DEBUG "%s\n", version); | ||
1767 | |||
1768 | /* register this driver with the USB subsystem */ | ||
1769 | err = usb_register(&orinoco_driver); | ||
1770 | if (err < 0) { | ||
1771 | printk(KERN_ERR PFX "usb_register failed, error %d\n", | ||
1772 | err); | ||
1773 | return err; | ||
1774 | } | ||
1775 | |||
1776 | return 0; | ||
1777 | } | ||
1778 | |||
1779 | static void __exit ezusb_module_exit(void) | ||
1780 | { | ||
1781 | /* deregister this driver with the USB subsystem */ | ||
1782 | usb_deregister(&orinoco_driver); | ||
1783 | } | ||
1784 | |||
1785 | |||
1786 | module_init(ezusb_module_init); | ||
1787 | module_exit(ezusb_module_exit); | ||
1788 | 1763 | ||
1789 | MODULE_AUTHOR("Manuel Estrada Sainz"); | 1764 | MODULE_AUTHOR("Manuel Estrada Sainz"); |
1790 | MODULE_DESCRIPTION("Driver for Orinoco wireless LAN cards using EZUSB bridge"); | 1765 | MODULE_DESCRIPTION("Driver for Orinoco wireless LAN cards using EZUSB bridge"); |
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index 9b6096866427..f4d28c39aac7 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c | |||
@@ -1083,15 +1083,4 @@ static struct usb_driver p54u_driver = { | |||
1083 | .soft_unbind = 1, | 1083 | .soft_unbind = 1, |
1084 | }; | 1084 | }; |
1085 | 1085 | ||
1086 | static int __init p54u_init(void) | 1086 | module_usb_driver(p54u_driver); |
1087 | { | ||
1088 | return usb_register(&p54u_driver); | ||
1089 | } | ||
1090 | |||
1091 | static void __exit p54u_exit(void) | ||
1092 | { | ||
1093 | usb_deregister(&p54u_driver); | ||
1094 | } | ||
1095 | |||
1096 | module_init(p54u_init); | ||
1097 | module_exit(p54u_exit); | ||
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 0c13840a7de5..85370a7dfa8b 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -3754,17 +3754,7 @@ static struct usb_driver rndis_wlan_driver = { | |||
3754 | .resume = usbnet_resume, | 3754 | .resume = usbnet_resume, |
3755 | }; | 3755 | }; |
3756 | 3756 | ||
3757 | static int __init rndis_wlan_init(void) | 3757 | module_usb_driver(rndis_wlan_driver); |
3758 | { | ||
3759 | return usb_register(&rndis_wlan_driver); | ||
3760 | } | ||
3761 | module_init(rndis_wlan_init); | ||
3762 | |||
3763 | static void __exit rndis_wlan_exit(void) | ||
3764 | { | ||
3765 | usb_deregister(&rndis_wlan_driver); | ||
3766 | } | ||
3767 | module_exit(rndis_wlan_exit); | ||
3768 | 3758 | ||
3769 | MODULE_AUTHOR("Bjorge Dijkstra"); | 3759 | MODULE_AUTHOR("Bjorge Dijkstra"); |
3770 | MODULE_AUTHOR("Jussi Kivilinna"); | 3760 | MODULE_AUTHOR("Jussi Kivilinna"); |
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 53c5f878f61d..b31f38d41a47 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1982,15 +1982,4 @@ static struct usb_driver rt2500usb_driver = { | |||
1982 | .resume = rt2x00usb_resume, | 1982 | .resume = rt2x00usb_resume, |
1983 | }; | 1983 | }; |
1984 | 1984 | ||
1985 | static int __init rt2500usb_init(void) | 1985 | module_usb_driver(rt2500usb_driver); |
1986 | { | ||
1987 | return usb_register(&rt2500usb_driver); | ||
1988 | } | ||
1989 | |||
1990 | static void __exit rt2500usb_exit(void) | ||
1991 | { | ||
1992 | usb_deregister(&rt2500usb_driver); | ||
1993 | } | ||
1994 | |||
1995 | module_init(rt2500usb_init); | ||
1996 | module_exit(rt2500usb_exit); | ||
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 377876315b8d..9ea4ecb3d9c8 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -1234,15 +1234,4 @@ static struct usb_driver rt2800usb_driver = { | |||
1234 | .resume = rt2x00usb_resume, | 1234 | .resume = rt2x00usb_resume, |
1235 | }; | 1235 | }; |
1236 | 1236 | ||
1237 | static int __init rt2800usb_init(void) | 1237 | module_usb_driver(rt2800usb_driver); |
1238 | { | ||
1239 | return usb_register(&rt2800usb_driver); | ||
1240 | } | ||
1241 | |||
1242 | static void __exit rt2800usb_exit(void) | ||
1243 | { | ||
1244 | usb_deregister(&rt2800usb_driver); | ||
1245 | } | ||
1246 | |||
1247 | module_init(rt2800usb_init); | ||
1248 | module_exit(rt2800usb_exit); | ||
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index cfb19dbb0a67..0e5a10179182 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -2528,15 +2528,4 @@ static struct usb_driver rt73usb_driver = { | |||
2528 | .resume = rt2x00usb_resume, | 2528 | .resume = rt2x00usb_resume, |
2529 | }; | 2529 | }; |
2530 | 2530 | ||
2531 | static int __init rt73usb_init(void) | 2531 | module_usb_driver(rt73usb_driver); |
2532 | { | ||
2533 | return usb_register(&rt73usb_driver); | ||
2534 | } | ||
2535 | |||
2536 | static void __exit rt73usb_exit(void) | ||
2537 | { | ||
2538 | usb_deregister(&rt73usb_driver); | ||
2539 | } | ||
2540 | |||
2541 | module_init(rt73usb_init); | ||
2542 | module_exit(rt73usb_exit); | ||
diff --git a/drivers/net/wireless/rtl818x/rtl8187/dev.c b/drivers/net/wireless/rtl818x/rtl8187/dev.c index 4a78f9e39dfa..638fbef693e6 100644 --- a/drivers/net/wireless/rtl818x/rtl8187/dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187/dev.c | |||
@@ -1592,15 +1592,4 @@ static struct usb_driver rtl8187_driver = { | |||
1592 | .disconnect = __devexit_p(rtl8187_disconnect), | 1592 | .disconnect = __devexit_p(rtl8187_disconnect), |
1593 | }; | 1593 | }; |
1594 | 1594 | ||
1595 | static int __init rtl8187_init(void) | 1595 | module_usb_driver(rtl8187_driver); |
1596 | { | ||
1597 | return usb_register(&rtl8187_driver); | ||
1598 | } | ||
1599 | |||
1600 | static void __exit rtl8187_exit(void) | ||
1601 | { | ||
1602 | usb_deregister(&rtl8187_driver); | ||
1603 | } | ||
1604 | |||
1605 | module_init(rtl8187_init); | ||
1606 | module_exit(rtl8187_exit); | ||
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c index c244f2f1b83f..674cd1a486c5 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | |||
@@ -356,15 +356,4 @@ static struct usb_driver rtl8192cu_driver = { | |||
356 | #endif | 356 | #endif |
357 | }; | 357 | }; |
358 | 358 | ||
359 | static int __init rtl8192cu_init(void) | 359 | module_usb_driver(rtl8192cu_driver); |
360 | { | ||
361 | return usb_register(&rtl8192cu_driver); | ||
362 | } | ||
363 | |||
364 | static void __exit rtl8192cu_exit(void) | ||
365 | { | ||
366 | usb_deregister(&rtl8192cu_driver); | ||
367 | } | ||
368 | |||
369 | module_init(rtl8192cu_init); | ||
370 | module_exit(rtl8192cu_exit); | ||
diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c index 8efa2f2d9579..a66b93b7ff9a 100644 --- a/drivers/net/wireless/zd1201.c +++ b/drivers/net/wireless/zd1201.c | |||
@@ -1907,15 +1907,4 @@ static struct usb_driver zd1201_usb = { | |||
1907 | .resume = zd1201_resume, | 1907 | .resume = zd1201_resume, |
1908 | }; | 1908 | }; |
1909 | 1909 | ||
1910 | static int __init zd1201_init(void) | 1910 | module_usb_driver(zd1201_usb); |
1911 | { | ||
1912 | return usb_register(&zd1201_usb); | ||
1913 | } | ||
1914 | |||
1915 | static void __exit zd1201_cleanup(void) | ||
1916 | { | ||
1917 | usb_deregister(&zd1201_usb); | ||
1918 | } | ||
1919 | |||
1920 | module_init(zd1201_init); | ||
1921 | module_exit(zd1201_cleanup); | ||