]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: Remove unnecessary device_remove_file()
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 7 Mar 2015 18:35:08 +0000 (19:35 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 8 Mar 2015 19:46:26 +0000 (19:46 +0000)
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>
sound/soc/soc-core.c

index 30579ca5bacb985c7dfa9b9ad30f58cee45d6e1a..acf99f1250e5f2860e37372efa247c55c93900e4 100644 (file)
@@ -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;
        }