diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-08 10:35:57 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-09 07:54:06 -0400 |
commit | 03730b8782ed0dc12c0cdb61ba3f07f1d36fba51 (patch) | |
tree | 921745476bafac0ffef43be9792e36117bf6d99d /sound/soc/codecs/rt5631.c | |
parent | 3592b7f69a5438812381ff0aacdea1725ffa1c1c (diff) |
ASoC: rt5631: Convert to module_i2c_driver()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/rt5631.c')
-rw-r--r-- | sound/soc/codecs/rt5631.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/codecs/rt5631.c b/sound/soc/codecs/rt5631.c index 95147e451982..a64f2a75c365 100644 --- a/sound/soc/codecs/rt5631.c +++ b/sound/soc/codecs/rt5631.c | |||
@@ -1751,17 +1751,7 @@ static struct i2c_driver rt5631_i2c_driver = { | |||
1751 | .id_table = rt5631_i2c_id, | 1751 | .id_table = rt5631_i2c_id, |
1752 | }; | 1752 | }; |
1753 | 1753 | ||
1754 | static int __init rt5631_modinit(void) | 1754 | module_i2c_driver(rt5631_i2c_driver); |
1755 | { | ||
1756 | return i2c_add_driver(&rt5631_i2c_driver); | ||
1757 | } | ||
1758 | module_init(rt5631_modinit); | ||
1759 | |||
1760 | static void __exit rt5631_modexit(void) | ||
1761 | { | ||
1762 | i2c_del_driver(&rt5631_i2c_driver); | ||
1763 | } | ||
1764 | module_exit(rt5631_modexit); | ||
1765 | 1755 | ||
1766 | MODULE_DESCRIPTION("ASoC RT5631 driver"); | 1756 | MODULE_DESCRIPTION("ASoC RT5631 driver"); |
1767 | MODULE_AUTHOR("flove <flove@realtek.com>"); | 1757 | MODULE_AUTHOR("flove <flove@realtek.com>"); |