mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Cc: Jean Delvare <[email protected]> Cc: Ben Dooks <[email protected]> Cc: Till Harbaum <[email protected]> Cc: Karsten Keil <[email protected]> Cc: Chris Ball <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Lauro Ramos Venancio <[email protected]> Cc: Aloisio Almeida Jr <[email protected]> Cc: Samuel Ortiz <[email protected]> Cc: Steve Glendinning <[email protected]> Cc: Florian Tobias Schandinat <[email protected]> Cc: Evgeniy Polyakov <[email protected]> Cc: Wim Van Sebroeck <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Jesper Juhl <[email protected]> Cc: Artem Bityutskiy <[email protected]> Cc: Jamie Iles <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
424f0750ed
commit
fe7484834b
12 changed files with 12 additions and 216 deletions
|
|
@ -2154,30 +2154,4 @@ static struct usb_driver hfcsusb_drv = {
|
|||
.disconnect = hfcsusb_disconnect,
|
||||
};
|
||||
|
||||
static int __init
|
||||
hfcsusb_init(void)
|
||||
{
|
||||
printk(KERN_INFO DRIVER_NAME " driver Rev. %s debug(0x%x) poll(%i)\n",
|
||||
hfcsusb_rev, debug, poll);
|
||||
|
||||
if (usb_register(&hfcsusb_drv)) {
|
||||
printk(KERN_INFO DRIVER_NAME
|
||||
": Unable to register hfcsusb module at usb stack\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit
|
||||
hfcsusb_cleanup(void)
|
||||
{
|
||||
if (debug & DBG_HFC_CALL_TRACE)
|
||||
printk(KERN_INFO DRIVER_NAME ": %s\n", __func__);
|
||||
|
||||
/* unregister Hardware */
|
||||
usb_deregister(&hfcsusb_drv); /* release our driver */
|
||||
}
|
||||
|
||||
module_init(hfcsusb_init);
|
||||
module_exit(hfcsusb_cleanup);
|
||||
module_usb_driver(hfcsusb_drv);
|
||||
|
|
|
|||
Loading…
Reference in a new issue