aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-03-09 14:18:14 -0400
committerMark Brown <broonie@kernel.org>2015-03-09 14:24:44 -0400
commitf580f8afd0d81c3f04d8b393c9d675ef289e4d40 (patch)
treeb9388f4469080c7c270cf86d2531d23c4d79abf1 /sound
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
ASoC: tlv320aic23: remove incorrect __exit markups
Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tlv320aic23-i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/tlv320aic23-i2c.c b/sound/soc/codecs/tlv320aic23-i2c.c
index f13701995482..78a94af65518 100644
--- a/sound/soc/codecs/tlv320aic23-i2c.c
+++ b/sound/soc/codecs/tlv320aic23-i2c.c
@@ -31,7 +31,7 @@ static int tlv320aic23_i2c_probe(struct i2c_client *i2c,
31 return tlv320aic23_probe(&i2c->dev, regmap); 31 return tlv320aic23_probe(&i2c->dev, regmap);
32} 32}
33 33
34static int __exit tlv320aic23_i2c_remove(struct i2c_client *i2c) 34static int tlv320aic23_i2c_remove(struct i2c_client *i2c)
35{ 35{
36 snd_soc_unregister_codec(&i2c->dev); 36 snd_soc_unregister_codec(&i2c->dev);
37 return 0; 37 return 0;
@@ -56,7 +56,7 @@ static struct i2c_driver tlv320aic23_i2c_driver = {
56 .of_match_table = of_match_ptr(tlv320aic23_of_match), 56 .of_match_table = of_match_ptr(tlv320aic23_of_match),
57 }, 57 },
58 .probe = tlv320aic23_i2c_probe, 58 .probe = tlv320aic23_i2c_probe,
59 .remove = __exit_p(tlv320aic23_i2c_remove), 59 .remove = tlv320aic23_i2c_remove,
60 .id_table = tlv320aic23_id, 60 .id_table = tlv320aic23_id,
61}; 61};
62 62