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

ASoC: alc5623: Convert to module_i2c_driver()

Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 0fb7d0c3
...@@ -1083,25 +1083,7 @@ static struct i2c_driver alc5623_i2c_driver = { ...@@ -1083,25 +1083,7 @@ static struct i2c_driver alc5623_i2c_driver = {
.id_table = alc5623_i2c_table, .id_table = alc5623_i2c_table,
}; };
static int __init alc5623_modinit(void) module_i2c_driver(alc5623_i2c_driver);
{
int ret;
ret = i2c_add_driver(&alc5623_i2c_driver);
if (ret != 0) {
printk(KERN_ERR "%s: can't add i2c driver", __func__);
return ret;
}
return ret;
}
module_init(alc5623_modinit);
static void __exit alc5623_modexit(void)
{
i2c_del_driver(&alc5623_i2c_driver);
}
module_exit(alc5623_modexit);
MODULE_DESCRIPTION("ASoC alc5621/2/3 driver"); MODULE_DESCRIPTION("ASoC alc5621/2/3 driver");
MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册