Commit 8d8c0b36 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

ASoC: alc5632: Convert to module_i2c_driver()

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 9c78a017
...@@ -1208,25 +1208,7 @@ static struct i2c_driver alc5632_i2c_driver = { ...@@ -1208,25 +1208,7 @@ static struct i2c_driver alc5632_i2c_driver = {
.id_table = alc5632_i2c_table, .id_table = alc5632_i2c_table,
}; };
static int __init alc5632_modinit(void) module_i2c_driver(alc5632_i2c_driver);
{
int ret;
ret = i2c_add_driver(&alc5632_i2c_driver);
if (ret != 0) {
printk(KERN_ERR "%s: can't add i2c driver", __func__);
return ret;
}
return ret;
}
module_init(alc5632_modinit);
static void __exit alc5632_modexit(void)
{
i2c_del_driver(&alc5632_i2c_driver);
}
module_exit(alc5632_modexit);
MODULE_DESCRIPTION("ASoC ALC5632 driver"); MODULE_DESCRIPTION("ASoC ALC5632 driver");
MODULE_AUTHOR("Leon Romanovsky <leon@leon.nu>"); MODULE_AUTHOR("Leon Romanovsky <leon@leon.nu>");
......
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