diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-18 12:50:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-18 12:50:44 -0500 |
commit | 424f0750edd5af866f80f5e65998e0610503cb5c (patch) | |
tree | 32075ed9fe97675ba81c6f2f0e86741f2a1d94a3 /sound/usb/usx2y | |
parent | 42f06a13445bffae96c5e42fdd721ef65fed6abf (diff) |
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/usx2y')
-rw-r--r-- | sound/usb/usx2y/us122l.c | 14 | ||||
-rw-r--r-- | sound/usb/usx2y/usbusx2y.c | 13 |
2 files changed, 2 insertions, 25 deletions
diff --git a/sound/usb/usx2y/us122l.c b/sound/usb/usx2y/us122l.c index 726c1a7b89b8..625f7ca6a894 100644 --- a/sound/usb/usx2y/us122l.c +++ b/sound/usb/usx2y/us122l.c | |||
@@ -772,16 +772,4 @@ static struct usb_driver snd_us122l_usb_driver = { | |||
772 | .supports_autosuspend = 1 | 772 | .supports_autosuspend = 1 |
773 | }; | 773 | }; |
774 | 774 | ||
775 | 775 | module_usb_driver(snd_us122l_usb_driver); | |
776 | static int __init snd_us122l_module_init(void) | ||
777 | { | ||
778 | return usb_register(&snd_us122l_usb_driver); | ||
779 | } | ||
780 | |||
781 | static void __exit snd_us122l_module_exit(void) | ||
782 | { | ||
783 | usb_deregister(&snd_us122l_usb_driver); | ||
784 | } | ||
785 | |||
786 | module_init(snd_us122l_module_init) | ||
787 | module_exit(snd_us122l_module_exit) | ||
diff --git a/sound/usb/usx2y/usbusx2y.c b/sound/usb/usx2y/usbusx2y.c index cbd37f2c76d0..0c738ed3ed38 100644 --- a/sound/usb/usx2y/usbusx2y.c +++ b/sound/usb/usx2y/usbusx2y.c | |||
@@ -459,15 +459,4 @@ static void usX2Y_usb_disconnect(struct usb_device *device, void* ptr) | |||
459 | } | 459 | } |
460 | } | 460 | } |
461 | 461 | ||
462 | static int __init snd_usX2Y_module_init(void) | 462 | module_usb_driver(snd_usX2Y_usb_driver); |
463 | { | ||
464 | return usb_register(&snd_usX2Y_usb_driver); | ||
465 | } | ||
466 | |||
467 | static void __exit snd_usX2Y_module_exit(void) | ||
468 | { | ||
469 | usb_deregister(&snd_usX2Y_usb_driver); | ||
470 | } | ||
471 | |||
472 | module_init(snd_usX2Y_module_init) | ||
473 | module_exit(snd_usX2Y_module_exit) | ||