mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -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
|
|
@ -515,20 +515,7 @@ static struct usb_driver diolan_u2c_driver = {
|
|||
.id_table = diolan_u2c_table,
|
||||
};
|
||||
|
||||
static int __init diolan_u2c_init(void)
|
||||
{
|
||||
/* register this driver with the USB subsystem */
|
||||
return usb_register(&diolan_u2c_driver);
|
||||
}
|
||||
|
||||
static void __exit diolan_u2c_exit(void)
|
||||
{
|
||||
/* deregister this driver with the USB subsystem */
|
||||
usb_deregister(&diolan_u2c_driver);
|
||||
}
|
||||
|
||||
module_init(diolan_u2c_init);
|
||||
module_exit(diolan_u2c_exit);
|
||||
module_usb_driver(diolan_u2c_driver);
|
||||
|
||||
MODULE_AUTHOR("Guenter Roeck <[email protected]>");
|
||||
MODULE_DESCRIPTION(DRIVER_NAME " driver");
|
||||
|
|
|
|||
|
|
@ -262,20 +262,7 @@ static struct usb_driver i2c_tiny_usb_driver = {
|
|||
.id_table = i2c_tiny_usb_table,
|
||||
};
|
||||
|
||||
static int __init usb_i2c_tiny_usb_init(void)
|
||||
{
|
||||
/* register this driver with the USB subsystem */
|
||||
return usb_register(&i2c_tiny_usb_driver);
|
||||
}
|
||||
|
||||
static void __exit usb_i2c_tiny_usb_exit(void)
|
||||
{
|
||||
/* deregister this driver with the USB subsystem */
|
||||
usb_deregister(&i2c_tiny_usb_driver);
|
||||
}
|
||||
|
||||
module_init(usb_i2c_tiny_usb_init);
|
||||
module_exit(usb_i2c_tiny_usb_exit);
|
||||
module_usb_driver(i2c_tiny_usb_driver);
|
||||
|
||||
/* ----- end of usb layer ------------------------------------------------ */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue