summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5677.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-06-03 10:56:41 +0800
committerMark Brown <broonie@linaro.org>2014-06-16 15:57:50 +0100
commitc8cfbec882b408cd933d24882302cacd39985e18 (patch)
treeaba36ecc58b1a801d05ba7310e222fa8f7a960eb /sound/soc/codecs/rt5677.c
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
downloadlwn-c8cfbec882b408cd933d24882302cacd39985e18.tar.gz
lwn-c8cfbec882b408cd933d24882302cacd39985e18.zip
ASoC: rt5677: Convert to use module_i2c_driver
Signed-off-by: Axel Lin <axel.lin@ingics.com> Tested-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/rt5677.c')
-rw-r--r--sound/soc/codecs/rt5677.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index 833231e27340..60fff7fdb85e 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -3480,18 +3480,7 @@ static struct i2c_driver rt5677_i2c_driver = {
.remove = rt5677_i2c_remove,
.id_table = rt5677_i2c_id,
};
-
-static int __init rt5677_modinit(void)
-{
- return i2c_add_driver(&rt5677_i2c_driver);
-}
-module_init(rt5677_modinit);
-
-static void __exit rt5677_modexit(void)
-{
- i2c_del_driver(&rt5677_i2c_driver);
-}
-module_exit(rt5677_modexit);
+module_i2c_driver(rt5677_i2c_driver);
MODULE_DESCRIPTION("ASoC RT5677 driver");
MODULE_AUTHOR("Oder Chiou <oder_chiou@realtek.com>");