Commit 292ab81d authored by Christoph Jaeger's avatar Christoph Jaeger Committed by Takashi Iwai

sound: dmasound: use module_platform_driver_probe()

Eliminate boilerplate code by using module_platform_driver_probe().
Signed-off-by: default avatarChristoph Jaeger <christophjaeger@linux.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 34f98063
...@@ -733,19 +733,7 @@ static struct platform_driver amiga_audio_driver = { ...@@ -733,19 +733,7 @@ static struct platform_driver amiga_audio_driver = {
}, },
}; };
static int __init amiga_audio_init(void) module_platform_driver_probe(amiga_audio_driver, amiga_audio_probe);
{
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_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:amiga-audio"); MODULE_ALIAS("platform:amiga-audio");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment