diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-06-02 22:56:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-16 10:57:50 -0400 |
commit | c8cfbec882b408cd933d24882302cacd39985e18 (patch) | |
tree | aba36ecc58b1a801d05ba7310e222fa8f7a960eb /sound | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
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')
-rw-r--r-- | sound/soc/codecs/rt5677.c | 13 |
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 = { | |||
3480 | .remove = rt5677_i2c_remove, | 3480 | .remove = rt5677_i2c_remove, |
3481 | .id_table = rt5677_i2c_id, | 3481 | .id_table = rt5677_i2c_id, |
3482 | }; | 3482 | }; |
3483 | 3483 | module_i2c_driver(rt5677_i2c_driver); | |
3484 | static int __init rt5677_modinit(void) | ||
3485 | { | ||
3486 | return i2c_add_driver(&rt5677_i2c_driver); | ||
3487 | } | ||
3488 | module_init(rt5677_modinit); | ||
3489 | |||
3490 | static void __exit rt5677_modexit(void) | ||
3491 | { | ||
3492 | i2c_del_driver(&rt5677_i2c_driver); | ||
3493 | } | ||
3494 | module_exit(rt5677_modexit); | ||
3495 | 3484 | ||
3496 | MODULE_DESCRIPTION("ASoC RT5677 driver"); | 3485 | MODULE_DESCRIPTION("ASoC RT5677 driver"); |
3497 | MODULE_AUTHOR("Oder Chiou <oder_chiou@realtek.com>"); | 3486 | MODULE_AUTHOR("Oder Chiou <oder_chiou@realtek.com>"); |