added missing device_remove_file during device remove
this resulted failure in modprobe of module
Bug
200038187
Bug
200037087
Change-Id: Ibbe8cf92162144d438f5b563bf6d2b9787acc04e
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/499745
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
static int rt5639_remove(struct snd_soc_codec *codec)
{
rt5639_set_bias_level(codec, SND_SOC_BIAS_OFF);
+ device_remove_file(codec->dev, &dev_attr_index_reg);
return 0;
}
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;
static int rt5645_remove(struct snd_soc_codec *codec)
{
rt5645_set_bias_level(codec, SND_SOC_BIAS_OFF);
+ device_remove_file(codec->dev, &dev_attr_codec_reg);
+ device_remove_file(codec->dev, &dev_attr_index_reg);
return 0;
}