mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -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
|
|
@ -1792,24 +1792,7 @@ static struct usb_driver ufx_driver = {
|
|||
.id_table = id_table,
|
||||
};
|
||||
|
||||
static int __init ufx_module_init(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
res = usb_register(&ufx_driver);
|
||||
if (res)
|
||||
err("usb_register failed. Error number %d", res);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static void __exit ufx_module_exit(void)
|
||||
{
|
||||
usb_deregister(&ufx_driver);
|
||||
}
|
||||
|
||||
module_init(ufx_module_init);
|
||||
module_exit(ufx_module_exit);
|
||||
module_usb_driver(ufx_driver);
|
||||
|
||||
static void ufx_urb_completion(struct urb *urb)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1761,24 +1761,7 @@ static struct usb_driver dlfb_driver = {
|
|||
.id_table = id_table,
|
||||
};
|
||||
|
||||
static int __init dlfb_module_init(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
res = usb_register(&dlfb_driver);
|
||||
if (res)
|
||||
err("usb_register failed. Error number %d", res);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static void __exit dlfb_module_exit(void)
|
||||
{
|
||||
usb_deregister(&dlfb_driver);
|
||||
}
|
||||
|
||||
module_init(dlfb_module_init);
|
||||
module_exit(dlfb_module_exit);
|
||||
module_usb_driver(dlfb_driver);
|
||||
|
||||
static void dlfb_urb_completion(struct urb *urb)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue