diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-10-09 07:52:32 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-09 08:00:34 -0400 |
commit | 6b5a7c66ce396242e504dbf3d9d5c06d8b1aa488 (patch) | |
tree | 5a159f92545b9e2119b798ad9447832ab86431d3 /sound/usb/card.c | |
parent | d820306cbe56fb010f500ae58f9725f49812d39a (diff) |
ALSA: usb-audio: Use module_usb_driver
module_usb_driver makes code simpler by removing the boilerplate.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/card.c')
-rw-r--r-- | sound/usb/card.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/usb/card.c b/sound/usb/card.c index 9d9de8d53469..d979050e6a6a 100644 --- a/sound/usb/card.c +++ b/sound/usb/card.c | |||
@@ -751,15 +751,4 @@ static struct usb_driver usb_audio_driver = { | |||
751 | .supports_autosuspend = 1, | 751 | .supports_autosuspend = 1, |
752 | }; | 752 | }; |
753 | 753 | ||
754 | static int __init snd_usb_audio_init(void) | 754 | module_usb_driver(usb_audio_driver); |
755 | { | ||
756 | return usb_register(&usb_audio_driver); | ||
757 | } | ||
758 | |||
759 | static void __exit snd_usb_audio_cleanup(void) | ||
760 | { | ||
761 | usb_deregister(&usb_audio_driver); | ||
762 | } | ||
763 | |||
764 | module_init(snd_usb_audio_init); | ||
765 | module_exit(snd_usb_audio_cleanup); | ||