2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 07:34:06 +08:00

ASoC: Convert omap directory to module_platform_driver

Factor out some boilerplate code.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Axel Lin 2011-11-25 10:12:16 +08:00 committed by Mark Brown
parent f9b8a51493
commit beda5bf575
5 changed files with 5 additions and 55 deletions

View File

@ -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>");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");