Skip to contentSkip to conversation

ASoC: Remove unnecessary device_remove_file()

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Mar 7, 2015 – Mar 8, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 sound/soc/soc-core.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/soc-core.c +0 -1
index 5c0658d..161af04 100644
@@ -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;
 	}
Signature · 1 line
1.8.0
maintainer Applied
#1 lore raw
Quoted 3 lines · Lars-Peter Clausen

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.