Commit beda5bf5 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

ASoC: Convert omap directory to module_platform_driver

Factor out some boilerplate code.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent f9b8a514
......@@ -139,17 +139,7 @@ static struct platform_driver hdmi_dai_driver = {
.remove = __devexit_p(omap_hdmi_remove),
};
static int __init hdmi_dai_init(void)
{
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_platform_driver(hdmi_dai_driver);
MODULE_AUTHOR("Jorge Candelaria <jorge.candelaria@ti.com>");
MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>");
......
......@@ -785,17 +785,7 @@ static struct platform_driver asoc_mcbsp_driver = {
.remove = __devexit_p(asoc_mcbsp_remove),
};
static int __init snd_omap_mcbsp_init(void)
{
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_platform_driver(asoc_mcbsp_driver);
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>");
MODULE_DESCRIPTION("OMAP I2S SoC Interface");
......
......@@ -520,17 +520,7 @@ static struct platform_driver asoc_mcpdm_driver = {
.remove = __devexit_p(asoc_mcpdm_remove),
};
static int __init snd_omap_mcpdm_init(void)
{
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_platform_driver(asoc_mcpdm_driver);
MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>");
MODULE_DESCRIPTION("OMAP PDM SoC Interface");
......
......@@ -433,17 +433,7 @@ static struct platform_driver omap_pcm_driver = {
.remove = __devexit_p(omap_pcm_remove),
};
static int __init snd_omap_pcm_init(void)
{
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_platform_driver(omap_pcm_driver);
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>");
MODULE_DESCRIPTION("OMAP PCM DMA module");
......
......@@ -112,17 +112,7 @@ static struct platform_driver omap4_hdmi_driver = {
.remove = __devexit_p(omap4_hdmi_remove),
};
static int __init omap4_hdmi_init(void)
{
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_platform_driver(omap4_hdmi_driver);
MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>");
MODULE_DESCRIPTION("OMAP4 HDMI machine ASoC driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment