From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Axel Lin <axel.lin@gmail.com>
Cc: Sedji Gaouaou <sedji.gaouaou@atmel.com>,
alsa-devel@alsa-project.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@ti.com>
Subject: Re: [PATCH 1/8] ASoC: Convert atmel directory to module_platform_driver
Date: Fri, 25 Nov 2011 09:22:15 +0100 [thread overview]
Message-ID: <4ECF5037.2080609@atmel.com> (raw)
In-Reply-To: <1322186745.8878.1.camel@phoenix>
On 11/25/2011 03:05 AM, Axel Lin :
> Factor out some boilerplate code.
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> sound/soc/atmel/atmel-pcm.c | 12 +-----------
> sound/soc/atmel/atmel_ssc_dai.c | 12 +-----------
> 2 files changed, 2 insertions(+), 22 deletions(-)
>
> diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c
> index f81d4c3..60de055 100644
> --- a/sound/soc/atmel/atmel-pcm.c
> +++ b/sound/soc/atmel/atmel-pcm.c
> @@ -495,17 +495,7 @@ static struct platform_driver atmel_pcm_driver = {
> .remove = __devexit_p(atmel_soc_platform_remove),
> };
>
> -static int __init snd_atmel_pcm_init(void)
> -{
> - return platform_driver_register(&atmel_pcm_driver);
> -}
> -module_init(snd_atmel_pcm_init);
> -
> -static void __exit snd_atmel_pcm_exit(void)
> -{
> - platform_driver_unregister(&atmel_pcm_driver);
> -}
> -module_exit(snd_atmel_pcm_exit);
> +module_platform_driver(atmel_pcm_driver);
>
> MODULE_AUTHOR("Sedji Gaouaou <sedji.gaouaou@atmel.com>");
> MODULE_DESCRIPTION("Atmel PCM module");
> diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
> index a67fc9b..354341e 100644
> --- a/sound/soc/atmel/atmel_ssc_dai.c
> +++ b/sound/soc/atmel/atmel_ssc_dai.c
> @@ -859,17 +859,7 @@ int atmel_ssc_set_audio(int ssc_id)
> }
> EXPORT_SYMBOL_GPL(atmel_ssc_set_audio);
>
> -static int __init snd_atmel_ssc_init(void)
> -{
> - return platform_driver_register(&asoc_ssc_driver);
> -}
> -module_init(snd_atmel_ssc_init);
> -
> -static void __exit snd_atmel_ssc_exit(void)
> -{
> - platform_driver_unregister(&asoc_ssc_driver);
> -}
> -module_exit(snd_atmel_ssc_exit);
> +module_platform_driver(asoc_ssc_driver);
>
> /* Module information */
> MODULE_AUTHOR("Sedji Gaouaou, sedji.gaouaou@atmel.com, www.atmel.com");
--
Nicolas Ferre
next prev parent reply other threads:[~2011-11-25 8:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-25 2:05 [PATCH 1/8] ASoC: Convert atmel directory to module_platform_driver Axel Lin
2011-11-25 2:06 ` [PATCH 2/8] ASoC: Convert au1x " Axel Lin
2011-11-29 6:28 ` Manuel Lauss
2011-11-25 2:09 ` [PATCH 3/8] ASoC: Convert davinci " Axel Lin
2011-11-25 2:10 ` [PATCH 4/8] ASoC: Convert fsl " Axel Lin
2011-11-28 17:15 ` Timur Tabi
2011-11-28 17:23 ` Mark Brown
2011-11-25 2:12 ` [PATCH 5/8] ASoC: Convert omap " Axel Lin
2011-11-25 8:18 ` Jarkko Nikula
2011-11-25 13:03 ` Péter Ujfalusi
2011-11-25 2:13 ` [PATCH 6/8] ASoC: Convert pxa " Axel Lin
2011-11-25 8:10 ` Marek Vasut
2011-11-25 8:44 ` robert.jarzmik
2011-11-25 2:15 ` [PATCH 7/8] ASoC: Convert sh " Axel Lin
2011-11-25 2:16 ` [PATCH 8/8] ASoC: Convert txx9 " Axel Lin
2011-11-25 8:22 ` Nicolas Ferre [this message]
2011-11-25 13:16 ` [PATCH 1/8] ASoC: Convert atmel " Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ECF5037.2080609@atmel.com \
--to=nicolas.ferre@atmel.com \
--cc=alsa-devel@alsa-project.org \
--cc=axel.lin@gmail.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@ti.com \
--cc=sedji.gaouaou@atmel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox