提交 880dd721 编写于 作者: A Axel Lin 提交者: Mark Brown

ASoC: Convert s6000 directory to module_platform_driver

Factor out some boilerplate code.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NDaniel Glöckner <dg@emlix.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 ee18f631
......@@ -604,17 +604,7 @@ static struct platform_driver s6000_i2s_driver = {
},
};
static int __init s6000_i2s_init(void)
{
return platform_driver_register(&s6000_i2s_driver);
}
module_init(s6000_i2s_init);
static void __exit s6000_i2s_exit(void)
{
platform_driver_unregister(&s6000_i2s_driver);
}
module_exit(s6000_i2s_exit);
module_platform_driver(s6000_i2s_driver);
MODULE_AUTHOR("Daniel Gloeckner");
MODULE_DESCRIPTION("Stretch s6000 family I2S SoC Interface");
......
......@@ -520,17 +520,7 @@ static struct platform_driver s6000_pcm_driver = {
.remove = __devexit_p(s6000_soc_platform_remove),
};
static int __init snd_s6000_pcm_init(void)
{
return platform_driver_register(&s6000_pcm_driver);
}
module_init(snd_s6000_pcm_init);
static void __exit snd_s6000_pcm_exit(void)
{
platform_driver_unregister(&s6000_pcm_driver);
}
module_exit(snd_s6000_pcm_exit);
module_platform_driver(s6000_pcm_driver);
MODULE_AUTHOR("Daniel Gloeckner");
MODULE_DESCRIPTION("Stretch s6000 family PCM DMA module");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册