diff options
Diffstat (limited to 'sound/soc/codecs/rt5640.c')
-rw-r--r-- | sound/soc/codecs/rt5640.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c index 30932cb20e50..65d213b2dc5d 100644 --- a/sound/soc/codecs/rt5640.c +++ b/sound/soc/codecs/rt5640.c @@ -2824,6 +2824,7 @@ static int rt5640_remove(struct snd_soc_codec *codec) CHECK_I2C_SHUTDOWN(rt5640, codec) rt5640_reset(codec); snd_soc_write(codec, RT5640_PWR_ANLG1, 0); + device_remove_file(codec->dev, &dev_attr_index_reg); mutex_unlock(&rt5640->lock); return 0; |