* [PATCH] sound: dmasound: use module_platform_driver_probe()
@ 2014-04-09 7:43 Christoph Jaeger
2014-04-09 8:04 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Jaeger @ 2014-04-09 7:43 UTC (permalink / raw)
To: perex, tiwai; +Cc: alsa-devel, linux-kernel, Christoph Jaeger
Eliminate boilerplate code by using module_platform_driver_probe().
Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
---
sound/oss/dmasound/dmasound_paula.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/sound/oss/dmasound/dmasound_paula.c b/sound/oss/dmasound/dmasound_paula.c
index 87910e9..c2d45a5 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");
--
1.9.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sound: dmasound: use module_platform_driver_probe()
2014-04-09 7:43 [PATCH] sound: dmasound: use module_platform_driver_probe() Christoph Jaeger
@ 2014-04-09 8:04 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2014-04-09 8:04 UTC (permalink / raw)
To: Christoph Jaeger; +Cc: perex, alsa-devel, linux-kernel
At Wed, 9 Apr 2014 09:43:53 +0200,
Christoph Jaeger wrote:
>
> Eliminate boilerplate code by using module_platform_driver_probe().
>
> Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Thanks, applied.
Takashi
> ---
> sound/oss/dmasound/dmasound_paula.c | 14 +-------------
> 1 file changed, 1 insertion(+), 13 deletions(-)
>
> diff --git a/sound/oss/dmasound/dmasound_paula.c b/sound/oss/dmasound/dmasound_paula.c
> index 87910e9..c2d45a5 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");
> --
> 1.9.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-09 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-09 7:43 [PATCH] sound: dmasound: use module_platform_driver_probe() Christoph Jaeger
2014-04-09 8:04 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®