aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-03-12 09:36:24 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-12 14:16:45 -0400
commitc300d6de53ae029576b2805f08d8596d2e511b08 (patch)
tree32d0de665fe57ce5cf2b3fc91fe82c75a33aa6d7
parent4fa89346fbc34750f96ec0c1b2b59b15596ab333 (diff)
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 <yongjun_wei@trendmicro.com.cn> Acked-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/tas5086.c12
1 files changed, 1 insertions, 11 deletions
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 = {
584 .remove = tas5086_i2c_remove, 584 .remove = tas5086_i2c_remove,
585}; 585};
586 586
587static int __init tas5086_modinit(void) 587module_i2c_driver(tas5086_i2c_driver);
588{
589 return i2c_add_driver(&tas5086_i2c_driver);
590}
591module_init(tas5086_modinit);
592
593static void __exit tas5086_modexit(void)
594{
595 i2c_del_driver(&tas5086_i2c_driver);
596}
597module_exit(tas5086_modexit);
598 588
599MODULE_AUTHOR("Daniel Mack <zonque@gmail.com>"); 589MODULE_AUTHOR("Daniel Mack <zonque@gmail.com>");
600MODULE_DESCRIPTION("Texas Instruments TAS5086 ALSA SoC Codec Driver"); 590MODULE_DESCRIPTION("Texas Instruments TAS5086 ALSA SoC Codec Driver");