All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: Convert smdk_wm8994pcm to use module_platform_driver()
@ 2011-11-28 10:53 Axel Lin
  2011-11-28 10:55 ` [PATCH 2/2] ASoC: Convert tegra_spdif " Axel Lin
  2011-11-29 11:34 ` [PATCH 1/2] ASoC: Convert smdk_wm8994pcm " Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2011-11-28 10:53 UTC (permalink / raw)
  To: alsa-devel; +Cc: Sangbeom Kim, Brown, Liam Girdwood, Mark

Use the module_platform_driver() macro which makes
the code smaller and a bit simpler.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/soc/samsung/smdk_wm8994pcm.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/sound/soc/samsung/smdk_wm8994pcm.c b/sound/soc/samsung/smdk_wm8994pcm.c
index da9c2a2..23c7fb7 100644
--- a/sound/soc/samsung/smdk_wm8994pcm.c
+++ b/sound/soc/samsung/smdk_wm8994pcm.c
@@ -158,19 +158,7 @@ static struct platform_driver snd_smdk_driver = {
 	.remove = __devexit_p(snd_smdk_remove),
 };
 
-static int __init smdk_audio_init(void)
-{
-	return platform_driver_register(&snd_smdk_driver);
-}
-
-module_init(smdk_audio_init);
-
-static void __exit smdk_audio_exit(void)
-{
-	platform_driver_unregister(&snd_smdk_driver);
-}
-
-module_exit(smdk_audio_exit);
+module_platform_driver(snd_smdk_driver);
 
 MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>");
 MODULE_DESCRIPTION("ALSA SoC SMDK WM8994 for PCM");
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ASoC: Convert tegra_spdif to use module_platform_driver()
  2011-11-28 10:53 [PATCH 1/2] ASoC: Convert smdk_wm8994pcm to use module_platform_driver() Axel Lin
@ 2011-11-28 10:55 ` Axel Lin
  2011-11-28 21:46   ` Stephen Warren
  2011-11-28 22:12   ` Mark Brown
  2011-11-29 11:34 ` [PATCH 1/2] ASoC: Convert smdk_wm8994pcm " Mark Brown
  1 sibling, 2 replies; 5+ messages in thread
From: Axel Lin @ 2011-11-28 10:55 UTC (permalink / raw)
  To: alsa-devel; +Cc: Brown, Stephen Warren, Liam Girdwood, Mark

Use the module_platform_driver() macro which makes
the code smaller and a bit simpler.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/soc/tegra/tegra_spdif.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/sound/soc/tegra/tegra_spdif.c b/sound/soc/tegra/tegra_spdif.c
index ea9c920..475428c 100644
--- a/sound/soc/tegra/tegra_spdif.c
+++ b/sound/soc/tegra/tegra_spdif.c
@@ -352,17 +352,7 @@ static struct platform_driver tegra_spdif_driver = {
 	.remove = __devexit_p(tegra_spdif_platform_remove),
 };
 
-static int __init snd_tegra_spdif_init(void)
-{
-	return platform_driver_register(&tegra_spdif_driver);
-}
-module_init(snd_tegra_spdif_init);
-
-static void __exit snd_tegra_spdif_exit(void)
-{
-	platform_driver_unregister(&tegra_spdif_driver);
-}
-module_exit(snd_tegra_spdif_exit);
+module_platform_driver(tegra_spdif_driver);
 
 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
 MODULE_DESCRIPTION("Tegra SPDIF ASoC driver");
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] ASoC: Convert tegra_spdif to use module_platform_driver()
  2011-11-28 10:55 ` [PATCH 2/2] ASoC: Convert tegra_spdif " Axel Lin
@ 2011-11-28 21:46   ` Stephen Warren
  2011-11-28 22:12   ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2011-11-28 21:46 UTC (permalink / raw)
  To: Axel Lin, alsa-devel@alsa-project.org; +Cc: Mark Brown, Liam Girdwood

Axel Lin wrote at Monday, November 28, 2011 3:55 AM:
> Use the module_platform_driver() macro which makes
> the code smaller and a bit simpler.
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Acked-by: Stephen Warren <swarren@nvidia.com>

-- 
nvpublic

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] ASoC: Convert tegra_spdif to use module_platform_driver()
  2011-11-28 10:55 ` [PATCH 2/2] ASoC: Convert tegra_spdif " Axel Lin
  2011-11-28 21:46   ` Stephen Warren
@ 2011-11-28 22:12   ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2011-11-28 22:12 UTC (permalink / raw)
  To: Axel Lin; +Cc: alsa-devel, Stephen Warren, Liam Girdwood

On Mon, Nov 28, 2011 at 06:55:03PM +0800, Axel Lin wrote:
> Use the module_platform_driver() macro which makes
> the code smaller and a bit simpler.

Applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] ASoC: Convert smdk_wm8994pcm to use module_platform_driver()
  2011-11-28 10:53 [PATCH 1/2] ASoC: Convert smdk_wm8994pcm to use module_platform_driver() Axel Lin
  2011-11-28 10:55 ` [PATCH 2/2] ASoC: Convert tegra_spdif " Axel Lin
@ 2011-11-29 11:34 ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2011-11-29 11:34 UTC (permalink / raw)
  To: Axel Lin; +Cc: Sangbeom Kim, alsa-devel, Liam Girdwood

On Mon, Nov 28, 2011 at 06:53:57PM +0800, Axel Lin wrote:
> Use the module_platform_driver() macro which makes
> the code smaller and a bit simpler.

Applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-29 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-28 10:53 [PATCH 1/2] ASoC: Convert smdk_wm8994pcm to use module_platform_driver() Axel Lin
2011-11-28 10:55 ` [PATCH 2/2] ASoC: Convert tegra_spdif " Axel Lin
2011-11-28 21:46   ` Stephen Warren
2011-11-28 22:12   ` Mark Brown
2011-11-29 11:34 ` [PATCH 1/2] ASoC: Convert smdk_wm8994pcm " Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.