Commit d8b51c11 authored by Mark Brown's avatar Mark Brown

ASoC: ac97c: Use module_platform_driver()

Acked-by: default avatarManuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment