You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07: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 <guenter.roeck@ericsson.com> Cc: Jean Delvare <khali@linux-fr.org> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Till Harbaum <till@harbaum.org> Cc: Karsten Keil <isdn@linux-pingi.de> Cc: Chris Ball <cjb@laptop.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org> Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Steve Glendinning <steve.glendinning@smsc.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Evgeniy Polyakov <zbr@ioremap.net> Cc: Wim Van Sebroeck <wim@iguana.be> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jesper Juhl <jj@chaosbits.net> Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Cc: Jamie Iles <jamie@jamieiles.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
+1
-11
@@ -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 <inaky.perez-gonzalez@intel.com>");
|
||||
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 <inaky.perez-gonzalez@intel.com>");
|
||||
MODULE_DESCRIPTION("Intel Wireless UWB Link 1480 firmware uploader for USB");
|
||||
|
||||
Reference in New Issue
Block a user