aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 21:09:27 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 08:15:31 -0500
commitf9b8a51493d69841bab3c5e85f335b6af0c8e5c2 (patch)
treec89ae86223aa618ad0f486cb1ca7bbc4e7b9ceb1 /sound
parent33d316cd8b39fda7106332e5554f5959dc04b4dc (diff)
ASoC: Convert davinci directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/davinci/davinci-i2s.c12
-rw-r--r--sound/soc/davinci/davinci-mcasp.c12
-rw-r--r--sound/soc/davinci/davinci-pcm.c12
-rw-r--r--sound/soc/davinci/davinci-vcif.c12
4 files changed, 4 insertions, 44 deletions
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c
index f3d5ae1078be..ec187100367e 100644
--- a/sound/soc/davinci/davinci-i2s.c
+++ b/sound/soc/davinci/davinci-i2s.c
@@ -774,17 +774,7 @@ static struct platform_driver davinci_mcbsp_driver = {
774 }, 774 },
775}; 775};
776 776
777static int __init davinci_i2s_init(void) 777module_platform_driver(davinci_mcbsp_driver);
778{
779 return platform_driver_register(&davinci_mcbsp_driver);
780}
781module_init(davinci_i2s_init);
782
783static void __exit davinci_i2s_exit(void)
784{
785 platform_driver_unregister(&davinci_mcbsp_driver);
786}
787module_exit(davinci_i2s_exit);
788 778
789MODULE_AUTHOR("Vladimir Barinov"); 779MODULE_AUTHOR("Vladimir Barinov");
790MODULE_DESCRIPTION("TI DAVINCI I2S (McBSP) SoC Interface"); 780MODULE_DESCRIPTION("TI DAVINCI I2S (McBSP) SoC Interface");
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 03cea9d39c4b..2152ff5c04f6 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -991,17 +991,7 @@ static struct platform_driver davinci_mcasp_driver = {
991 }, 991 },
992}; 992};
993 993
994static int __init davinci_mcasp_init(void) 994module_platform_driver(davinci_mcasp_driver);
995{
996 return platform_driver_register(&davinci_mcasp_driver);
997}
998module_init(davinci_mcasp_init);
999
1000static void __exit davinci_mcasp_exit(void)
1001{
1002 platform_driver_unregister(&davinci_mcasp_driver);
1003}
1004module_exit(davinci_mcasp_exit);
1005 995
1006MODULE_AUTHOR("Steve Chen"); 996MODULE_AUTHOR("Steve Chen");
1007MODULE_DESCRIPTION("TI DAVINCI McASP SoC Interface"); 997MODULE_DESCRIPTION("TI DAVINCI McASP SoC Interface");
diff --git a/sound/soc/davinci/davinci-pcm.c b/sound/soc/davinci/davinci-pcm.c
index d5fe08cc5db7..65bff3d30dd7 100644
--- a/sound/soc/davinci/davinci-pcm.c
+++ b/sound/soc/davinci/davinci-pcm.c
@@ -886,17 +886,7 @@ static struct platform_driver davinci_pcm_driver = {
886 .remove = __devexit_p(davinci_soc_platform_remove), 886 .remove = __devexit_p(davinci_soc_platform_remove),
887}; 887};
888 888
889static int __init snd_davinci_pcm_init(void) 889module_platform_driver(davinci_pcm_driver);
890{
891 return platform_driver_register(&davinci_pcm_driver);
892}
893module_init(snd_davinci_pcm_init);
894
895static void __exit snd_davinci_pcm_exit(void)
896{
897 platform_driver_unregister(&davinci_pcm_driver);
898}
899module_exit(snd_davinci_pcm_exit);
900 890
901MODULE_AUTHOR("Vladimir Barinov"); 891MODULE_AUTHOR("Vladimir Barinov");
902MODULE_DESCRIPTION("TI DAVINCI PCM DMA module"); 892MODULE_DESCRIPTION("TI DAVINCI PCM DMA module");
diff --git a/sound/soc/davinci/davinci-vcif.c b/sound/soc/davinci/davinci-vcif.c
index dae96b85fd6d..70ce10c5d998 100644
--- a/sound/soc/davinci/davinci-vcif.c
+++ b/sound/soc/davinci/davinci-vcif.c
@@ -265,17 +265,7 @@ static struct platform_driver davinci_vcif_driver = {
265 }, 265 },
266}; 266};
267 267
268static int __init davinci_vcif_init(void) 268module_platform_driver(davinci_vcif_driver);
269{
270 return platform_driver_probe(&davinci_vcif_driver, davinci_vcif_probe);
271}
272module_init(davinci_vcif_init);
273
274static void __exit davinci_vcif_exit(void)
275{
276 platform_driver_unregister(&davinci_vcif_driver);
277}
278module_exit(davinci_vcif_exit);
279 269
280MODULE_AUTHOR("Miguel Aguilar"); 270MODULE_AUTHOR("Miguel Aguilar");
281MODULE_DESCRIPTION("Texas Instruments DaVinci ASoC Voice Codec Interface"); 271MODULE_DESCRIPTION("Texas Instruments DaVinci ASoC Voice Codec Interface");