ASoC: Convert mxs directory to module_platform_driver
Subsystems (3)
PATCH 1/1 ASoC: Convert mxs directory to module_platform_driver
Factor out some boilerplate code.
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/mxs/mxs-pcm.c | 12 +----------- sound/soc/mxs/mxs-saif.c | 12 +----------- sound/soc/mxs/mxs-sgtl5000.c | 12 +----------- 3 files changed, 3 insertions(+), 33 deletions(-)
sound/soc/mxs/mxs-pcm.c +1 -11
@@ -346,14 +346,4 @@ static struct platform_driver mxs_pcm_driver = { .remove = __devexit_p(mxs_soc_platform_remove), }; -static int __init snd_mxs_pcm_init (void ) -{ -return platform_driver_register (&mxs_pcm_driver); -} -module_init (snd_mxs_pcm_init); - -static void __exit snd_mxs_pcm_exit(void) -{ -platform_driver_unregister (&mxs_pcm_driver); -} -module_exit (snd_mxs_pcm_exit); +module_platform_driver (mxs_pcm_driver);
sound/soc/mxs/mxs-saif.c +1 -11
@@ -781,18 +781,8 @@ static struct platform_driver mxs_saif_driver = { }, }; -static int __init mxs_saif_init (void ) -{ -return platform_driver_register (&mxs_saif_driver); -} - -static void __exit mxs_saif_exit(void) -{ -platform_driver_unregister (&mxs_saif_driver); -} +module_platform_driver (mxs_saif_driver); -module_init (mxs_saif_init); -module_exit (mxs_saif_exit);MODULE_AUTHOR ("Freescale Semiconductor, Inc." );MODULE_DESCRIPTION ("MXS ASoC SAIF driver" );MODULE_LICENSE ("GPL" );
sound/soc/mxs/mxs-sgtl5000.c +1 -11
@@ -156,17 +156,7 @@ static struct platform_driver mxs_sgtl5000_audio_driver = { .remove = __devexit_p(mxs_sgtl5000_remove), }; -static int __init mxs_sgtl5000_init (void ) -{ -return platform_driver_register (&mxs_sgtl5000_audio_driver); -} -module_init (mxs_sgtl5000_init); - -static void __exit mxs_sgtl5000_exit(void) -{ -platform_driver_unregister (&mxs_sgtl5000_audio_driver); -} -module_exit (mxs_sgtl5000_exit); +module_platform_driver (mxs_sgtl5000_audio_driver);MODULE_AUTHOR ("Freescale Semiconductor, Inc." );MODULE_DESCRIPTION ("MXS ALSA SoC Machine driver" );
Signature · 1 line
1.7.5.4
Quoted 3 lines · Axel Lin
Factor out some boilerplate code.
Signed-off-by Axel Lin <[email protected]>
Acked-by Wolfram Sang <[email protected]>
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
Dong Aisheng-B29396
Acked-by Dong AishengQuoted 9 lines
-----Original Message-----
From: Wolfram Sang [mailto:[email protected]]
Sent: Thursday, November 24, 2011 3:57 PM
To: Axel Lin
Cc: [email protected]; Dong Aisheng-B29396; Liam Girdwood; Mark Brown
Subject: Re: [PATCH] ASoC: Convert mxs directory tomodule_platform_driver
Quoted 7 lines
Quoted 3 lines · Axel Lin
Factor out some boilerplate code.
Signed-off-by Axel Lin <[email protected]>Acked-by Wolfram Sang <[email protected]>
Acked-by Dong Aisheng <[email protected]>
Regards
Dong Aisheng