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

ASoC: Convert ep93xx directory to module_platform_driver

Factor out some boilerplate code.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@iki.fi>
Acked-by: default avatarAlexander Sverdlin <subaparts@yandex.ru>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 45f31216
...@@ -131,17 +131,7 @@ static struct platform_driver edb93xx_driver = { ...@@ -131,17 +131,7 @@ static struct platform_driver edb93xx_driver = {
.remove = __devexit_p(edb93xx_remove), .remove = __devexit_p(edb93xx_remove),
}; };
static int __init edb93xx_init(void) module_platform_driver(edb93xx_driver);
{
return platform_driver_register(&edb93xx_driver);
}
module_init(edb93xx_init);
static void __exit edb93xx_exit(void)
{
platform_driver_unregister(&edb93xx_driver);
}
module_exit(edb93xx_exit);
MODULE_AUTHOR("Alexander Sverdlin <subaparts@yandex.ru>"); MODULE_AUTHOR("Alexander Sverdlin <subaparts@yandex.ru>");
MODULE_DESCRIPTION("ALSA SoC EDB93xx"); MODULE_DESCRIPTION("ALSA SoC EDB93xx");
......
...@@ -449,17 +449,7 @@ static struct platform_driver ep93xx_ac97_driver = { ...@@ -449,17 +449,7 @@ static struct platform_driver ep93xx_ac97_driver = {
}, },
}; };
static int __init ep93xx_ac97_init(void) module_platform_driver(ep93xx_ac97_driver);
{
return platform_driver_register(&ep93xx_ac97_driver);
}
module_init(ep93xx_ac97_init);
static void __exit ep93xx_ac97_exit(void)
{
platform_driver_unregister(&ep93xx_ac97_driver);
}
module_exit(ep93xx_ac97_exit);
MODULE_DESCRIPTION("EP93xx AC97 ASoC Driver"); MODULE_DESCRIPTION("EP93xx AC97 ASoC Driver");
MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>");
......
...@@ -464,18 +464,7 @@ static struct platform_driver ep93xx_i2s_driver = { ...@@ -464,18 +464,7 @@ static struct platform_driver ep93xx_i2s_driver = {
}, },
}; };
static int __init ep93xx_i2s_init(void) module_platform_driver(ep93xx_i2s_driver);
{
return platform_driver_register(&ep93xx_i2s_driver);
}
static void __exit ep93xx_i2s_exit(void)
{
platform_driver_unregister(&ep93xx_i2s_driver);
}
module_init(ep93xx_i2s_init);
module_exit(ep93xx_i2s_exit);
MODULE_ALIAS("platform:ep93xx-i2s"); MODULE_ALIAS("platform:ep93xx-i2s");
MODULE_AUTHOR("Ryan Mallon"); MODULE_AUTHOR("Ryan Mallon");
......
...@@ -339,18 +339,7 @@ static struct platform_driver ep93xx_pcm_driver = { ...@@ -339,18 +339,7 @@ static struct platform_driver ep93xx_pcm_driver = {
.remove = __devexit_p(ep93xx_soc_platform_remove), .remove = __devexit_p(ep93xx_soc_platform_remove),
}; };
static int __init ep93xx_soc_platform_init(void) module_platform_driver(ep93xx_pcm_driver);
{
return platform_driver_register(&ep93xx_pcm_driver);
}
static void __exit ep93xx_soc_platform_exit(void)
{
platform_driver_unregister(&ep93xx_pcm_driver);
}
module_init(ep93xx_soc_platform_init);
module_exit(ep93xx_soc_platform_exit);
MODULE_AUTHOR("Ryan Mallon"); MODULE_AUTHOR("Ryan Mallon");
MODULE_DESCRIPTION("EP93xx ALSA PCM interface"); MODULE_DESCRIPTION("EP93xx ALSA PCM interface");
......
...@@ -81,17 +81,7 @@ static struct platform_driver simone_driver = { ...@@ -81,17 +81,7 @@ static struct platform_driver simone_driver = {
.remove = __devexit_p(simone_remove), .remove = __devexit_p(simone_remove),
}; };
static int __init simone_init(void) module_platform_driver(simone_driver);
{
return platform_driver_register(&simone_driver);
}
module_init(simone_init);
static void __exit simone_exit(void)
{
platform_driver_unregister(&simone_driver);
}
module_exit(simone_exit);
MODULE_DESCRIPTION("ALSA SoC Simplemachines Sim.One"); MODULE_DESCRIPTION("ALSA SoC Simplemachines Sim.One");
MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>");
......
...@@ -147,18 +147,7 @@ static struct platform_driver snappercl15_driver = { ...@@ -147,18 +147,7 @@ static struct platform_driver snappercl15_driver = {
.remove = __devexit_p(snappercl15_remove), .remove = __devexit_p(snappercl15_remove),
}; };
static int __init snappercl15_init(void) module_platform_driver(snappercl15_driver);
{
return platform_driver_register(&snappercl15_driver);
}
static void __exit snappercl15_exit(void)
{
platform_driver_unregister(&snappercl15_driver);
}
module_init(snappercl15_init);
module_exit(snappercl15_exit);
MODULE_AUTHOR("Ryan Mallon"); MODULE_AUTHOR("Ryan Mallon");
MODULE_DESCRIPTION("ALSA SoC Snapper CL15"); MODULE_DESCRIPTION("ALSA SoC Snapper CL15");
......
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