diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-18 12:52:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-18 12:52:10 -0500 |
commit | fe7484834bb614c2c205726647635171ce6cc070 (patch) | |
tree | e96e560153c2d4a2b2ad1feba6cc4fe09dbb5a29 /drivers/uwb/hwa-rc.c | |
parent | 424f0750edd5af866f80f5e65998e0610503cb5c (diff) |
USB: convert some miscellanies drivers to use module_usb_driver()
This converts the remaining USB drivers in the kernel to use the
module_usb_driver() macro which makes the code smaller and a bit
simpler.
Added bonus is that it removes some unneeded kernel log messages about
drivers loading and/or unloading.
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Till Harbaum <till@harbaum.org>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: Chris Ball <cjb@laptop.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Steve Glendinning <steve.glendinning@smsc.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jesper Juhl <jj@chaosbits.net>
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Cc: Jamie Iles <jamie@jamieiles.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/uwb/hwa-rc.c')
-rw-r--r-- | drivers/uwb/hwa-rc.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/uwb/hwa-rc.c b/drivers/uwb/hwa-rc.c index 2babcd4fbfc1..66797e9c5010 100644 --- a/drivers/uwb/hwa-rc.c +++ b/drivers/uwb/hwa-rc.c | |||
@@ -914,17 +914,7 @@ static struct usb_driver hwarc_driver = { | |||
914 | .post_reset = hwarc_post_reset, | 914 | .post_reset = hwarc_post_reset, |
915 | }; | 915 | }; |
916 | 916 | ||
917 | static int __init hwarc_driver_init(void) | 917 | module_usb_driver(hwarc_driver); |
918 | { | ||
919 | return usb_register(&hwarc_driver); | ||
920 | } | ||
921 | module_init(hwarc_driver_init); | ||
922 | |||
923 | static void __exit hwarc_driver_exit(void) | ||
924 | { | ||
925 | usb_deregister(&hwarc_driver); | ||
926 | } | ||
927 | module_exit(hwarc_driver_exit); | ||
928 | 918 | ||
929 | MODULE_AUTHOR("Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>"); | 919 | MODULE_AUTHOR("Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>"); |
930 | MODULE_DESCRIPTION("Host Wireless Adapter Radio Control Driver"); | 920 | MODULE_DESCRIPTION("Host Wireless Adapter Radio Control Driver"); |