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/w1 | |
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/w1')
-rw-r--r-- | drivers/w1/masters/ds2490.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c index b5abaae38e97..4f7e1d770f81 100644 --- a/drivers/w1/masters/ds2490.c +++ b/drivers/w1/masters/ds2490.c | |||
@@ -1002,26 +1002,7 @@ static void ds_disconnect(struct usb_interface *intf) | |||
1002 | kfree(dev); | 1002 | kfree(dev); |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | static int ds_init(void) | 1005 | module_usb_driver(ds_driver); |
1006 | { | ||
1007 | int err; | ||
1008 | |||
1009 | err = usb_register(&ds_driver); | ||
1010 | if (err) { | ||
1011 | printk(KERN_INFO "Failed to register DS9490R USB device: err=%d.\n", err); | ||
1012 | return err; | ||
1013 | } | ||
1014 | |||
1015 | return 0; | ||
1016 | } | ||
1017 | |||
1018 | static void ds_fini(void) | ||
1019 | { | ||
1020 | usb_deregister(&ds_driver); | ||
1021 | } | ||
1022 | |||
1023 | module_init(ds_init); | ||
1024 | module_exit(ds_fini); | ||
1025 | 1006 | ||
1026 | MODULE_LICENSE("GPL"); | 1007 | MODULE_LICENSE("GPL"); |
1027 | MODULE_AUTHOR("Evgeniy Polyakov <zbr@ioremap.net>"); | 1008 | MODULE_AUTHOR("Evgeniy Polyakov <zbr@ioremap.net>"); |