提交 d8b51c11 编写于 作者: M Mark Brown

ASoC: ac97c: Use module_platform_driver()

Acked-by: NManuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 2105d63e
...@@ -338,19 +338,7 @@ static struct platform_driver au1xac97c_driver = { ...@@ -338,19 +338,7 @@ static struct platform_driver au1xac97c_driver = {
.remove = au1xac97c_drvremove, .remove = au1xac97c_drvremove,
}; };
static int __init au1xac97c_load(void) module_platform_driver(&au1xac97c_driver);
{
ac97c_workdata = NULL;
return platform_driver_register(&au1xac97c_driver);
}
static void __exit au1xac97c_unload(void)
{
platform_driver_unregister(&au1xac97c_driver);
}
module_init(au1xac97c_load);
module_exit(au1xac97c_unload);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Au1000/1500/1100 AC97C ASoC driver"); MODULE_DESCRIPTION("Au1000/1500/1100 AC97C ASoC driver");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册