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/caiaq/device.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'sound/usb/caiaq') diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c index 3eb605bd950..457fb274ff9 100644 --- a/sound/usb/caiaq/device.c +++ b/sound/usb/caiaq/device.c @@ -538,16 +538,5 @@ static struct usb_driver snd_usb_driver = { .id_table = snd_usb_id_table, }; -static int __init snd_module_init(void) -{ - return usb_register(&snd_usb_driver); -} - -static void __exit snd_module_exit(void) -{ - usb_deregister(&snd_usb_driver); -} - -module_init(snd_module_init) -module_exit(snd_module_exit) +module_usb_driver(snd_usb_driver); -- cgit v1.2.3