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/caiaq/device.c | |
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/caiaq/device.c')
-rw-r--r-- | sound/usb/caiaq/device.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c index 3eb605bd9503..457fb274ff92 100644 --- a/sound/usb/caiaq/device.c +++ b/sound/usb/caiaq/device.c | |||
@@ -538,16 +538,5 @@ static struct usb_driver snd_usb_driver = { | |||
538 | .id_table = snd_usb_id_table, | 538 | .id_table = snd_usb_id_table, |
539 | }; | 539 | }; |
540 | 540 | ||
541 | static int __init snd_module_init(void) | 541 | module_usb_driver(snd_usb_driver); |
542 | { | ||
543 | return usb_register(&snd_usb_driver); | ||
544 | } | ||
545 | |||
546 | static void __exit snd_module_exit(void) | ||
547 | { | ||
548 | usb_deregister(&snd_usb_driver); | ||
549 | } | ||
550 | |||
551 | module_init(snd_module_init) | ||
552 | module_exit(snd_module_exit) | ||
553 | 542 | ||