From: Axel Lin Date: Tue, 8 May 2012 15:43:33 +0000 (+0800) Subject: ASoC: alc5632: Convert to module_i2c_driver() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d8c0b362e970abe719ad9615ea59039730932f6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ASoC: alc5632: Convert to module_i2c_driver() Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c index 93a5909fcc4..b29a53be75a 100644 --- a/sound/soc/codecs/alc5632.c +++ b/sound/soc/codecs/alc5632.c @@ -1208,25 +1208,7 @@ static struct i2c_driver alc5632_i2c_driver = { .id_table = alc5632_i2c_table, }; -static int __init alc5632_modinit(void) -{ - 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_i2c_driver(alc5632_i2c_driver); MODULE_DESCRIPTION("ASoC ALC5632 driver"); MODULE_AUTHOR("Leon Romanovsky ");