]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blobdiff - sound/soc/codecs/rt5640.c
asoc: rt56xx: fix missing device_remove_file
[sojka/nv-tegra/linux-3.10.git] / sound / soc / codecs / rt5640.c
index 30932cb20e50039ef4b822a1b15dc6cb0229a1b7..65d213b2dc5d0aeb4499df4bb34ecf313a5ff2e9 100644 (file)
@@ -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;