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

ASoC: Convert atmel directory to module_platform_driver

Factor out some boilerplate code.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a81b82c0
...@@ -495,17 +495,7 @@ static struct platform_driver atmel_pcm_driver = { ...@@ -495,17 +495,7 @@ static struct platform_driver atmel_pcm_driver = {
.remove = __devexit_p(atmel_soc_platform_remove), .remove = __devexit_p(atmel_soc_platform_remove),
}; };
static int __init snd_atmel_pcm_init(void) module_platform_driver(atmel_pcm_driver);
{
return platform_driver_register(&atmel_pcm_driver);
}
module_init(snd_atmel_pcm_init);
static void __exit snd_atmel_pcm_exit(void)
{
platform_driver_unregister(&atmel_pcm_driver);
}
module_exit(snd_atmel_pcm_exit);
MODULE_AUTHOR("Sedji Gaouaou <sedji.gaouaou@atmel.com>"); MODULE_AUTHOR("Sedji Gaouaou <sedji.gaouaou@atmel.com>");
MODULE_DESCRIPTION("Atmel PCM module"); MODULE_DESCRIPTION("Atmel PCM module");
......
...@@ -859,17 +859,7 @@ int atmel_ssc_set_audio(int ssc_id) ...@@ -859,17 +859,7 @@ int atmel_ssc_set_audio(int ssc_id)
} }
EXPORT_SYMBOL_GPL(atmel_ssc_set_audio); EXPORT_SYMBOL_GPL(atmel_ssc_set_audio);
static int __init snd_atmel_ssc_init(void) module_platform_driver(asoc_ssc_driver);
{
return platform_driver_register(&asoc_ssc_driver);
}
module_init(snd_atmel_ssc_init);
static void __exit snd_atmel_ssc_exit(void)
{
platform_driver_unregister(&asoc_ssc_driver);
}
module_exit(snd_atmel_ssc_exit);
/* Module information */ /* Module information */
MODULE_AUTHOR("Sedji Gaouaou, sedji.gaouaou@atmel.com, www.atmel.com"); MODULE_AUTHOR("Sedji Gaouaou, sedji.gaouaou@atmel.com, www.atmel.com");
......
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