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/watchdog | |
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/watchdog')
-rw-r--r-- | drivers/watchdog/pcwd_usb.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/drivers/watchdog/pcwd_usb.c b/drivers/watchdog/pcwd_usb.c index 748a74bd85e..d8de1ddd176 100644 --- a/drivers/watchdog/pcwd_usb.c +++ b/drivers/watchdog/pcwd_usb.c | |||
@@ -827,37 +827,4 @@ static void usb_pcwd_disconnect(struct usb_interface *interface) | |||
827 | printk(KERN_INFO PFX "USB PC Watchdog disconnected\n"); | 827 | printk(KERN_INFO PFX "USB PC Watchdog disconnected\n"); |
828 | } | 828 | } |
829 | 829 | ||
830 | 830 | module_usb_driver(usb_pcwd_driver); | |
831 | |||
832 | /** | ||
833 | * usb_pcwd_init | ||
834 | */ | ||
835 | static int __init usb_pcwd_init(void) | ||
836 | { | ||
837 | int result; | ||
838 | |||
839 | /* register this driver with the USB subsystem */ | ||
840 | result = usb_register(&usb_pcwd_driver); | ||
841 | if (result) { | ||
842 | printk(KERN_ERR PFX "usb_register failed. Error number %d\n", | ||
843 | result); | ||
844 | return result; | ||
845 | } | ||
846 | |||
847 | printk(KERN_INFO PFX DRIVER_DESC " v" DRIVER_VERSION "\n"); | ||
848 | return 0; | ||
849 | } | ||
850 | |||
851 | |||
852 | /** | ||
853 | * usb_pcwd_exit | ||
854 | */ | ||
855 | static void __exit usb_pcwd_exit(void) | ||
856 | { | ||
857 | /* deregister this driver with the USB subsystem */ | ||
858 | usb_deregister(&usb_pcwd_driver); | ||
859 | } | ||
860 | |||
861 | |||
862 | module_init(usb_pcwd_init); | ||
863 | module_exit(usb_pcwd_exit); | ||