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

ASoC: Convert nuc900 directory to module_platform_driver

Factor out some boilerplate code.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 c32986e6
......@@ -405,18 +405,7 @@ static struct platform_driver nuc900_ac97_driver = {
.remove = __devexit_p(nuc900_ac97_drvremove),
};
static int __init nuc900_ac97_init(void)
{
return platform_driver_register(&nuc900_ac97_driver);
}
static void __exit nuc900_ac97_exit(void)
{
platform_driver_unregister(&nuc900_ac97_driver);
}
module_init(nuc900_ac97_init);
module_exit(nuc900_ac97_exit);
module_platform_driver(nuc900_ac97_driver);
MODULE_AUTHOR("Wan ZongShun <mcuos.com@gmail.com>");
MODULE_DESCRIPTION("NUC900 AC97 SoC driver!");
......
......@@ -358,17 +358,7 @@ static struct platform_driver nuc900_pcm_driver = {
.remove = __devexit_p(nuc900_soc_platform_remove),
};
static int __init nuc900_pcm_init(void)
{
return platform_driver_register(&nuc900_pcm_driver);
}
module_init(nuc900_pcm_init);
static void __exit nuc900_pcm_exit(void)
{
platform_driver_unregister(&nuc900_pcm_driver);
}
module_exit(nuc900_pcm_exit);
module_platform_driver(nuc900_pcm_driver);
MODULE_AUTHOR("Wan ZongShun, <mcuos.com@gmail.com>");
MODULE_DESCRIPTION("nuc900 Audio DMA module");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册