From: Sachin Kamat Date: Wed, 9 Oct 2013 11:52:32 +0000 (+0530) Subject: ALSA: usb-audio: Use module_usb_driver X-Git-Tag: v3.13-rc1~2^2~132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b5a7c66ce396242e504dbf3d9d5c06d8b1aa488;p=profile%2Fcommon%2Fkernel-common.git ALSA: usb-audio: Use module_usb_driver module_usb_driver makes code simpler by removing the boilerplate. Signed-off-by: Sachin Kamat Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/card.c b/sound/usb/card.c index 9d9de8d..d979050 100644 --- a/sound/usb/card.c +++ b/sound/usb/card.c @@ -751,15 +751,4 @@ static struct usb_driver usb_audio_driver = { .supports_autosuspend = 1, }; -static int __init snd_usb_audio_init(void) -{ - return usb_register(&usb_audio_driver); -} - -static void __exit snd_usb_audio_cleanup(void) -{ - usb_deregister(&usb_audio_driver); -} - -module_init(snd_usb_audio_init); -module_exit(snd_usb_audio_cleanup); +module_usb_driver(usb_audio_driver);