mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
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>
This commit is contained in:
parent
d820306cbe
commit
6b5a7c66ce
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user