From: Wei Yongjun Date: Tue, 12 Mar 2013 13:36:24 +0000 (+0800) Subject: ASoC: tas5086: use module_i2c_driver to simplify the code X-Git-Tag: next-20130320~56^2~3^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c300d6de53ae029576b2805f08d8596d2e511b08;p=karo-tx-linux.git ASoC: tas5086: use module_i2c_driver to simplify the code Use the module_i2c_driver() macro to make the code smaller and a bit simpler. Signed-off-by: Wei Yongjun Acked-by: Daniel Mack Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/tas5086.c b/sound/soc/codecs/tas5086.c index 008bea4d6208..40cee844f0cf 100644 --- a/sound/soc/codecs/tas5086.c +++ b/sound/soc/codecs/tas5086.c @@ -584,17 +584,7 @@ static struct i2c_driver tas5086_i2c_driver = { .remove = tas5086_i2c_remove, }; -static int __init tas5086_modinit(void) -{ - return i2c_add_driver(&tas5086_i2c_driver); -} -module_init(tas5086_modinit); - -static void __exit tas5086_modexit(void) -{ - i2c_del_driver(&tas5086_i2c_driver); -} -module_exit(tas5086_modexit); +module_i2c_driver(tas5086_i2c_driver); MODULE_AUTHOR("Daniel Mack "); MODULE_DESCRIPTION("Texas Instruments TAS5086 ALSA SoC Codec Driver");