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
|
|
@ -1597,24 +1597,7 @@ static struct usb_driver pn533_driver = {
|
|||
.id_table = pn533_table,
|
||||
};
|
||||
|
||||
static int __init pn533_init(void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = usb_register(&pn533_driver);
|
||||
if (rc)
|
||||
err("usb_register failed. Error number %d", rc);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static void __exit pn533_exit(void)
|
||||
{
|
||||
usb_deregister(&pn533_driver);
|
||||
}
|
||||
|
||||
module_init(pn533_init);
|
||||
module_exit(pn533_exit);
|
||||
module_usb_driver(pn533_driver);
|
||||
|
||||
MODULE_AUTHOR("Lauro Ramos Venancio <[email protected]>,"
|
||||
" Aloisio Almeida Jr <[email protected]>");
|
||||
|
|
|
|||
Loading…
Reference in a new issue