All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Convert mips directory to module_platform_driver
@ 2011-11-24  2:22 Axel Lin
  2011-11-24 10:24 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-11-24  2:22 UTC (permalink / raw)
  To: alsa-devel; +Cc: Thomas Bogendoerfer, Liam Girdwood, Mark Brown

Factor out some boilerplate code.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/mips/hal2.c       |   13 +------------
 sound/mips/sgio2audio.c |   13 +------------
 2 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c
index 2e6c858..5f88d1f 100644
--- a/sound/mips/hal2.c
+++ b/sound/mips/hal2.c
@@ -935,15 +935,4 @@ static struct platform_driver hal2_driver = {
 	}
 };
 
-static int __init alsa_card_hal2_init(void)
-{
-	return platform_driver_register(&hal2_driver);
-}
-
-static void __exit alsa_card_hal2_exit(void)
-{
-	platform_driver_unregister(&hal2_driver);
-}
-
-module_init(alsa_card_hal2_init);
-module_exit(alsa_card_hal2_exit);
+module_platform_driver(hal2_driver);
diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c
index 69425d4..ceaa593 100644
--- a/sound/mips/sgio2audio.c
+++ b/sound/mips/sgio2audio.c
@@ -976,15 +976,4 @@ static struct platform_driver sgio2audio_driver = {
 	}
 };
 
-static int __init alsa_card_sgio2audio_init(void)
-{
-	return platform_driver_register(&sgio2audio_driver);
-}
-
-static void __exit alsa_card_sgio2audio_exit(void)
-{
-	platform_driver_unregister(&sgio2audio_driver);
-}
-
-module_init(alsa_card_sgio2audio_init)
-module_exit(alsa_card_sgio2audio_exit)
+module_platform_driver(sgio2audio_driver);
-- 
1.7.5.4

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

* Re: [PATCH] ASoC: Convert mips directory to module_platform_driver
  2011-11-24  2:22 [PATCH] ASoC: Convert mips directory to module_platform_driver Axel Lin
@ 2011-11-24 10:24 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-11-24 10:24 UTC (permalink / raw)
  To: Axel Lin; +Cc: Takashi Iwai, alsa-devel, Thomas Bogendoerfer, Liam Girdwood

On Thu, Nov 24, 2011 at 10:22:50AM +0800, Axel Lin wrote:
> Factor out some boilerplate code.
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
>  sound/mips/hal2.c       |   13 +------------
>  sound/mips/sgio2audio.c |   13 +------------

This isn't actually an ASoC change - it's a generic sound change so
Takashi would normally take it.

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24  2:22 [PATCH] ASoC: Convert mips directory to module_platform_driver Axel Lin
2011-11-24 10:24 ` 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.