diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-05-08 11:43:33 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-08 13:46:31 -0400 |
commit | 8d8c0b362e970abe719ad9615ea59039730932f6 (patch) | |
tree | d53f0951e643c4aeba1dab91d2fd80b91395ba98 /sound/soc/codecs | |
parent | 9c78a017d7ab4fd09bcb1c2b6ed4f97f89cb44b6 (diff) |
ASoC: alc5632: 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')
-rw-r--r-- | sound/soc/codecs/alc5632.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c index 93a5909fcc49..b29a53be75a7 100644 --- a/sound/soc/codecs/alc5632.c +++ b/sound/soc/codecs/alc5632.c | |||
@@ -1208,25 +1208,7 @@ static struct i2c_driver alc5632_i2c_driver = { | |||
1208 | .id_table = alc5632_i2c_table, | 1208 | .id_table = alc5632_i2c_table, |
1209 | }; | 1209 | }; |
1210 | 1210 | ||
1211 | static int __init alc5632_modinit(void) | 1211 | module_i2c_driver(alc5632_i2c_driver); |
1212 | { | ||
1213 | int ret; | ||
1214 | |||
1215 | ret = i2c_add_driver(&alc5632_i2c_driver); | ||
1216 | if (ret != 0) { | ||
1217 | printk(KERN_ERR "%s: can't add i2c driver", __func__); | ||
1218 | return ret; | ||
1219 | } | ||
1220 | |||
1221 | return ret; | ||
1222 | } | ||
1223 | module_init(alc5632_modinit); | ||
1224 | |||
1225 | static void __exit alc5632_modexit(void) | ||
1226 | { | ||
1227 | i2c_del_driver(&alc5632_i2c_driver); | ||
1228 | } | ||
1229 | module_exit(alc5632_modexit); | ||
1230 | 1212 | ||
1231 | MODULE_DESCRIPTION("ASoC ALC5632 driver"); | 1213 | MODULE_DESCRIPTION("ASoC ALC5632 driver"); |
1232 | MODULE_AUTHOR("Leon Romanovsky <leon@leon.nu>"); | 1214 | MODULE_AUTHOR("Leon Romanovsky <leon@leon.nu>"); |