summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/alc5623.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-05-08 19:42:23 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-08 21:46:30 +0400
commit9c78a017d7ab4fd09bcb1c2b6ed4f97f89cb44b6 (patch)
tree2ab2f9c005b5e62ea8ce889de8dc34c9adc74d14 /sound/soc/codecs/alc5623.c
parent0fb7d0c30b59db5bea833546aae1fea8a0e94356 (diff)
downloadlinux-9c78a017d7ab4fd09bcb1c2b6ed4f97f89cb44b6.tar.xz
ASoC: alc5623: Convert to module_i2c_driver()
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/alc5623.c')
-rw-r--r--sound/soc/codecs/alc5623.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sound/soc/codecs/alc5623.c b/sound/soc/codecs/alc5623.c
index 3061d35e9f5c..1960478ce6bb 100644
--- a/sound/soc/codecs/alc5623.c
+++ b/sound/soc/codecs/alc5623.c
@@ -1083,25 +1083,7 @@ static struct i2c_driver alc5623_i2c_driver = {
.id_table = alc5623_i2c_table,
};
-static int __init alc5623_modinit(void)
-{
- int ret;
-
- ret = i2c_add_driver(&alc5623_i2c_driver);
- if (ret != 0) {
- printk(KERN_ERR "%s: can't add i2c driver", __func__);
- return ret;
- }
-
- return ret;
-}
-module_init(alc5623_modinit);
-
-static void __exit alc5623_modexit(void)
-{
- i2c_del_driver(&alc5623_i2c_driver);
-}
-module_exit(alc5623_modexit);
+module_i2c_driver(alc5623_i2c_driver);
MODULE_DESCRIPTION("ASoC alc5621/2/3 driver");
MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");