From: Christoph Jaeger Date: Wed, 9 Apr 2014 07:43:53 +0000 (+0200) Subject: sound: dmasound: use module_platform_driver_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=292ab81df0e9e1444fd027e1f45336eb0ce4e23d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sound: dmasound: use module_platform_driver_probe() Eliminate boilerplate code by using module_platform_driver_probe(). Signed-off-by: Christoph Jaeger Signed-off-by: Takashi Iwai --- diff --git a/sound/oss/dmasound/dmasound_paula.c b/sound/oss/dmasound/dmasound_paula.c index 87910e992133..c2d45a5848bc 100644 --- a/sound/oss/dmasound/dmasound_paula.c +++ b/sound/oss/dmasound/dmasound_paula.c @@ -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");