mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
sound: dmasound: use module_platform_driver_probe()
Eliminate boilerplate code by using module_platform_driver_probe(). Signed-off-by: Christoph Jaeger <christophjaeger@linux.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
34f980630f
commit
292ab81df0
@ -733,19 +733,7 @@ static struct platform_driver amiga_audio_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init amiga_audio_init(void)
|
||||
{
|
||||
return platform_driver_probe(&amiga_audio_driver, amiga_audio_probe);
|
||||
}
|
||||
|
||||
module_init(amiga_audio_init);
|
||||
|
||||
static void __exit amiga_audio_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&amiga_audio_driver);
|
||||
}
|
||||
|
||||
module_exit(amiga_audio_exit);
|
||||
module_platform_driver_probe(amiga_audio_driver, amiga_audio_probe);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("platform:amiga-audio");
|
||||
|
Loading…
Reference in New Issue
Block a user