提交 6b5a7c66 编写于 作者: S Sachin Kamat 提交者: Takashi Iwai

ALSA: usb-audio: Use module_usb_driver

module_usb_driver makes code simpler by removing the boilerplate.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 d820306c
......@@ -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);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册