提交 beda5bf5 编写于 作者: A Axel Lin 提交者: Mark Brown

ASoC: Convert omap directory to module_platform_driver

Factor out some boilerplate code.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NJarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 f9b8a514
...@@ -139,17 +139,7 @@ static struct platform_driver hdmi_dai_driver = { ...@@ -139,17 +139,7 @@ static struct platform_driver hdmi_dai_driver = {
.remove = __devexit_p(omap_hdmi_remove), .remove = __devexit_p(omap_hdmi_remove),
}; };
static int __init hdmi_dai_init(void) module_platform_driver(hdmi_dai_driver);
{
return platform_driver_register(&hdmi_dai_driver);
}
module_init(hdmi_dai_init);
static void __exit hdmi_dai_exit(void)
{
platform_driver_unregister(&hdmi_dai_driver);
}
module_exit(hdmi_dai_exit);
MODULE_AUTHOR("Jorge Candelaria <jorge.candelaria@ti.com>"); MODULE_AUTHOR("Jorge Candelaria <jorge.candelaria@ti.com>");
MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>");
......
...@@ -785,17 +785,7 @@ static struct platform_driver asoc_mcbsp_driver = { ...@@ -785,17 +785,7 @@ static struct platform_driver asoc_mcbsp_driver = {
.remove = __devexit_p(asoc_mcbsp_remove), .remove = __devexit_p(asoc_mcbsp_remove),
}; };
static int __init snd_omap_mcbsp_init(void) module_platform_driver(asoc_mcbsp_driver);
{
return platform_driver_register(&asoc_mcbsp_driver);
}
module_init(snd_omap_mcbsp_init);
static void __exit snd_omap_mcbsp_exit(void)
{
platform_driver_unregister(&asoc_mcbsp_driver);
}
module_exit(snd_omap_mcbsp_exit);
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>");
MODULE_DESCRIPTION("OMAP I2S SoC Interface"); MODULE_DESCRIPTION("OMAP I2S SoC Interface");
......
...@@ -520,17 +520,7 @@ static struct platform_driver asoc_mcpdm_driver = { ...@@ -520,17 +520,7 @@ static struct platform_driver asoc_mcpdm_driver = {
.remove = __devexit_p(asoc_mcpdm_remove), .remove = __devexit_p(asoc_mcpdm_remove),
}; };
static int __init snd_omap_mcpdm_init(void) module_platform_driver(asoc_mcpdm_driver);
{
return platform_driver_register(&asoc_mcpdm_driver);
}
module_init(snd_omap_mcpdm_init);
static void __exit snd_omap_mcpdm_exit(void)
{
platform_driver_unregister(&asoc_mcpdm_driver);
}
module_exit(snd_omap_mcpdm_exit);
MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>"); MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>");
MODULE_DESCRIPTION("OMAP PDM SoC Interface"); MODULE_DESCRIPTION("OMAP PDM SoC Interface");
......
...@@ -433,17 +433,7 @@ static struct platform_driver omap_pcm_driver = { ...@@ -433,17 +433,7 @@ static struct platform_driver omap_pcm_driver = {
.remove = __devexit_p(omap_pcm_remove), .remove = __devexit_p(omap_pcm_remove),
}; };
static int __init snd_omap_pcm_init(void) module_platform_driver(omap_pcm_driver);
{
return platform_driver_register(&omap_pcm_driver);
}
module_init(snd_omap_pcm_init);
static void __exit snd_omap_pcm_exit(void)
{
platform_driver_unregister(&omap_pcm_driver);
}
module_exit(snd_omap_pcm_exit);
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>");
MODULE_DESCRIPTION("OMAP PCM DMA module"); MODULE_DESCRIPTION("OMAP PCM DMA module");
......
...@@ -112,17 +112,7 @@ static struct platform_driver omap4_hdmi_driver = { ...@@ -112,17 +112,7 @@ static struct platform_driver omap4_hdmi_driver = {
.remove = __devexit_p(omap4_hdmi_remove), .remove = __devexit_p(omap4_hdmi_remove),
}; };
static int __init omap4_hdmi_init(void) module_platform_driver(omap4_hdmi_driver);
{
return platform_driver_register(&omap4_hdmi_driver);
}
module_init(omap4_hdmi_init);
static void __exit omap4_hdmi_exit(void)
{
platform_driver_unregister(&omap4_hdmi_driver);
}
module_exit(omap4_hdmi_exit);
MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>");
MODULE_DESCRIPTION("OMAP4 HDMI machine ASoC driver"); MODULE_DESCRIPTION("OMAP4 HDMI machine ASoC driver");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册