mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -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
|
|
@ -914,17 +914,7 @@ static struct usb_driver hwarc_driver = {
|
|||
.post_reset = hwarc_post_reset,
|
||||
};
|
||||
|
||||
static int __init hwarc_driver_init(void)
|
||||
{
|
||||
return usb_register(&hwarc_driver);
|
||||
}
|
||||
module_init(hwarc_driver_init);
|
||||
|
||||
static void __exit hwarc_driver_exit(void)
|
||||
{
|
||||
usb_deregister(&hwarc_driver);
|
||||
}
|
||||
module_exit(hwarc_driver_exit);
|
||||
module_usb_driver(hwarc_driver);
|
||||
|
||||
MODULE_AUTHOR("Inaky Perez-Gonzalez <[email protected]>");
|
||||
MODULE_DESCRIPTION("Host Wireless Adapter Radio Control Driver");
|
||||
|
|
|
|||
|
|
@ -451,25 +451,7 @@ static struct usb_driver i1480_dfu_driver = {
|
|||
.disconnect = NULL,
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Initialize the i1480 DFU driver.
|
||||
*
|
||||
* We also need to register our function for guessing event sizes.
|
||||
*/
|
||||
static int __init i1480_dfu_driver_init(void)
|
||||
{
|
||||
return usb_register(&i1480_dfu_driver);
|
||||
}
|
||||
module_init(i1480_dfu_driver_init);
|
||||
|
||||
|
||||
static void __exit i1480_dfu_driver_exit(void)
|
||||
{
|
||||
usb_deregister(&i1480_dfu_driver);
|
||||
}
|
||||
module_exit(i1480_dfu_driver_exit);
|
||||
|
||||
module_usb_driver(i1480_dfu_driver);
|
||||
|
||||
MODULE_AUTHOR("Inaky Perez-Gonzalez <[email protected]>");
|
||||
MODULE_DESCRIPTION("Intel Wireless UWB Link 1480 firmware uploader for USB");
|
||||
|
|
|
|||
Loading…
Reference in a new issue