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

ASoC: Convert pxa directory to module_platform_driver

Factor out some boilerplate code.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NMarek Vasut <marek.vasut@gmail.com>
Acked-by: NRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 8a124f9c
...@@ -236,18 +236,7 @@ static struct platform_driver hx4700_audio_driver = { ...@@ -236,18 +236,7 @@ static struct platform_driver hx4700_audio_driver = {
.remove = __devexit_p(hx4700_audio_remove), .remove = __devexit_p(hx4700_audio_remove),
}; };
static int __init hx4700_modinit(void) module_platform_driver(hx4700_audio_driver);
{
return platform_driver_register(&hx4700_audio_driver);
}
module_init(hx4700_modinit);
static void __exit hx4700_modexit(void)
{
platform_driver_unregister(&hx4700_audio_driver);
}
module_exit(hx4700_modexit);
MODULE_AUTHOR("Philipp Zabel"); MODULE_AUTHOR("Philipp Zabel");
MODULE_DESCRIPTION("ALSA SoC iPAQ hx4700"); MODULE_DESCRIPTION("ALSA SoC iPAQ hx4700");
......
...@@ -227,18 +227,7 @@ static struct platform_driver mioa701_wm9713_driver = { ...@@ -227,18 +227,7 @@ static struct platform_driver mioa701_wm9713_driver = {
}, },
}; };
static int __init mioa701_asoc_init(void) module_platform_driver(mioa701_wm9713_driver);
{
return platform_driver_register(&mioa701_wm9713_driver);
}
static void __exit mioa701_asoc_exit(void)
{
platform_driver_unregister(&mioa701_wm9713_driver);
}
module_init(mioa701_asoc_init);
module_exit(mioa701_asoc_exit);
/* Module information */ /* Module information */
MODULE_AUTHOR("Robert Jarzmik (rjarzmik@free.fr)"); MODULE_AUTHOR("Robert Jarzmik (rjarzmik@free.fr)");
......
...@@ -201,18 +201,7 @@ static struct platform_driver palm27x_wm9712_driver = { ...@@ -201,18 +201,7 @@ static struct platform_driver palm27x_wm9712_driver = {
}, },
}; };
static int __init palm27x_asoc_init(void) module_platform_driver(palm27x_wm9712_driver);
{
return platform_driver_register(&palm27x_wm9712_driver);
}
static void __exit palm27x_asoc_exit(void)
{
platform_driver_unregister(&palm27x_wm9712_driver);
}
module_init(palm27x_asoc_init);
module_exit(palm27x_asoc_exit);
/* Module information */ /* Module information */
MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>");
......
...@@ -825,17 +825,7 @@ static struct platform_driver asoc_ssp_driver = { ...@@ -825,17 +825,7 @@ static struct platform_driver asoc_ssp_driver = {
.remove = __devexit_p(asoc_ssp_remove), .remove = __devexit_p(asoc_ssp_remove),
}; };
static int __init pxa_ssp_init(void) module_platform_driver(asoc_ssp_driver);
{
return platform_driver_register(&asoc_ssp_driver);
}
module_init(pxa_ssp_init);
static void __exit pxa_ssp_exit(void)
{
platform_driver_unregister(&asoc_ssp_driver);
}
module_exit(pxa_ssp_exit);
/* Module information */ /* Module information */
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
......
...@@ -263,17 +263,7 @@ static struct platform_driver pxa2xx_ac97_driver = { ...@@ -263,17 +263,7 @@ static struct platform_driver pxa2xx_ac97_driver = {
}, },
}; };
static int __init pxa_ac97_init(void) module_platform_driver(pxa2xx_ac97_driver);
{
return platform_driver_register(&pxa2xx_ac97_driver);
}
module_init(pxa_ac97_init);
static void __exit pxa_ac97_exit(void)
{
platform_driver_unregister(&pxa2xx_ac97_driver);
}
module_exit(pxa_ac97_exit);
MODULE_AUTHOR("Nicolas Pitre"); MODULE_AUTHOR("Nicolas Pitre");
MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip"); MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip");
......
...@@ -141,17 +141,7 @@ static struct platform_driver pxa_pcm_driver = { ...@@ -141,17 +141,7 @@ static struct platform_driver pxa_pcm_driver = {
.remove = __devexit_p(pxa2xx_soc_platform_remove), .remove = __devexit_p(pxa2xx_soc_platform_remove),
}; };
static int __init snd_pxa_pcm_init(void) module_platform_driver(pxa_pcm_driver);
{
return platform_driver_register(&pxa_pcm_driver);
}
module_init(snd_pxa_pcm_init);
static void __exit snd_pxa_pcm_exit(void)
{
platform_driver_unregister(&pxa_pcm_driver);
}
module_exit(snd_pxa_pcm_exit);
MODULE_AUTHOR("Nicolas Pitre"); MODULE_AUTHOR("Nicolas Pitre");
MODULE_DESCRIPTION("Intel PXA2xx PCM DMA module"); MODULE_DESCRIPTION("Intel PXA2xx PCM DMA module");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册