diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-03-07 21:35:08 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-08 22:46:26 +0300 |
commit | 778952598e53f09251bebe1655177b355cd9e836 (patch) | |
tree | a64560dd8c18fbef97429e8e1403caade9ba9156 /sound/soc/soc-core.c | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
download | linux-778952598e53f09251bebe1655177b355cd9e836.tar.xz |
ASoC: Remove unnecessary device_remove_file()
Since commit d29697dc3b92 ("ASoC: Add sysfs entries via static attribute
groups") the sysfs attributes of the rtd are manged by the device core and
there is no need to manually call device_remove_file() anymore.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 30579ca5bacb..acf99f1250e5 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1410,7 +1410,6 @@ static void soc_remove_aux_dev(struct snd_soc_card *card, int num) /* unregister the rtd device */ if (rtd->dev_registered) { - device_remove_file(rtd->dev, &dev_attr_codec_reg); device_unregister(rtd->dev); rtd->dev_registered = 0; } |