Skip to content

Commit

Permalink
ALSA: usb-audio: Use module_usb_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Takashi Iwai committed Oct 9, 2013
1 parent d820306 commit 6b5a7c6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions sound/usb/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 6b5a7c6

Please sign in to comment.