diff mbox

ASoC: Remove unnecessary device_remove_file()

Message ID 1425753308-28695-1-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit 778952598e53f09251bebe1655177b355cd9e836
Headers show

Commit Message

Lars-Peter Clausen March 7, 2015, 6:35 p.m. UTC
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>
---
 sound/soc/soc-core.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Mark Brown March 8, 2015, 7:46 p.m. UTC | #1
On Sat, Mar 07, 2015 at 07:35:08PM +0100, Lars-Peter Clausen wrote:
> 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.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 5c0658d..161af04 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;
 	}