From 424f0750edd5af866f80f5e65998e0610503cb5c Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 18 Nov 2011 09:50:44 -0800 Subject: USB: convert sound/* to use module_usb_driver() This converts the drivers in sound/* 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: Jaroslav Kysela Cc: Takashi Iwai Cc: Daniel Mack Cc: Clemens Ladisch Cc: Torsten Schenk Cc: Paul Gortmaker Cc: Karsten Wiese Signed-off-by: Greg Kroah-Hartman --- sound/usb/misc/ua101.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'sound/usb/misc/ua101.c') diff --git a/sound/usb/misc/ua101.c b/sound/usb/misc/ua101.c index c0609c21030..4c11da911a1 100644 --- a/sound/usb/misc/ua101.c +++ b/sound/usb/misc/ua101.c @@ -1387,16 +1387,4 @@ static struct usb_driver ua101_driver = { #endif }; -static int __init alsa_card_ua101_init(void) -{ - return usb_register(&ua101_driver); -} - -static void __exit alsa_card_ua101_exit(void) -{ - usb_deregister(&ua101_driver); - mutex_destroy(&devices_mutex); -} - -module_init(alsa_card_ua101_init); -module_exit(alsa_card_ua101_exit); +module_usb_driver(ua101_driver); -- cgit v1.2.3