You need to sign in or sign up before continuing.
提交 5edd3c27 编写于 作者: B Brian Austin 提交者: Mark Brown

ASoC: cs42l73: Convert to module_i2c_driver()

Signed-off-by: NBrian Austin <brian.austin@cirrus.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 01476801
...@@ -1426,25 +1426,7 @@ static struct i2c_driver cs42l73_i2c_driver = { ...@@ -1426,25 +1426,7 @@ static struct i2c_driver cs42l73_i2c_driver = {
}; };
static int __init cs42l73_modinit(void) module_i2c_driver(cs42l73_i2c_driver);
{
int ret;
ret = i2c_add_driver(&cs42l73_i2c_driver);
if (ret != 0) {
pr_err("Failed to register CS42L73 I2C driver: %d\n", ret);
return ret;
}
return 0;
}
module_init(cs42l73_modinit);
static void __exit cs42l73_exit(void)
{
i2c_del_driver(&cs42l73_i2c_driver);
}
module_exit(cs42l73_exit);
MODULE_DESCRIPTION("ASoC CS42L73 driver"); MODULE_DESCRIPTION("ASoC CS42L73 driver");
MODULE_AUTHOR("Georgi Vlaev, Nucleus Systems Ltd, <joe@nucleusys.com>"); MODULE_AUTHOR("Georgi Vlaev, Nucleus Systems Ltd, <joe@nucleusys.com>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册