summaryrefslogtreecommitdiff
path: root/sound/usb/misc
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2011-11-18 21:50:44 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-18 21:50:44 +0400
commit424f0750edd5af866f80f5e65998e0610503cb5c (patch)
tree32075ed9fe97675ba81c6f2f0e86741f2a1d94a3 /sound/usb/misc
parent42f06a13445bffae96c5e42fdd721ef65fed6abf (diff)
downloadlinux-424f0750edd5af866f80f5e65998e0610503cb5c.tar.xz
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 <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.de> Cc: Daniel Mack <zonque@gmail.com> Cc: Clemens Ladisch <clemens@ladisch.de> Cc: Torsten Schenk <torsten.schenk@zoho.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Karsten Wiese <fzu@wemgehoertderstaat.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound/usb/misc')
-rw-r--r--sound/usb/misc/ua101.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/usb/misc/ua101.c b/sound/usb/misc/ua101.c
index c0609c210303..4c11da911a14 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);