ASoC: Remove extra rtd->dev.init_name assignment in soc_probe_dai_link
PATCH 1/1 ASoC: Remove extra rtd->dev.init_name assignment in soc_probe_dai_link
rtd->dev.init_name is set twice in soc_probe_dai_link. I removed the first assignement from dai_link->stream_name since then there won't be sysfs name changes and usually dai_link->name seems to fit anyway better for a sysfs directory name.
--- sound/soc/soc-core.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/soc-core.c +0 -1
@@ -1451,7 +1451,6 @@ static int soc_probe_dai_link(struct snd_soc_card *card, int num)snd_soc_dapm_sync (codec);/* register the rtd device */ - rtd->dev.init_name = rtd->dai_link->stream_name; rtd->dev.release = rtd_release; rtd->dev.init_name = dai_link->name; ret =device_register (&rtd->dev);
Signature · 1 line
1.7.1
Quoted 15 lines · Jarkko Nikula
rtd->dev.init_nameis set twice insoc_probe_dai_link. I removed the first assignement fromdai_link->stream_namesince then there won't be sysfs name changes and usuallydai_link->nameseems to fit anyway better for a sysfs directory name.Signed-off-by Jarkko Nikula <[email protected]>--- sound/soc/soc-core.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)sound/soc/soc-core.c +0
-0
sound/soc/soc-core.c static int soc_probe_dai_link(struct snd_soc_card *card, int num) · line 1456
Quoted 7 lines
sound/soc/soc-core.c +0
-1@@ -1451,7 +1451,6 @@ static int soc_probe_dai_link(struct snd_soc_card *card, int num)snd_soc_dapm_sync (codec);/* register the rtd device */ - rtd->dev.init_name = rtd->dai_link->stream_name; rtd->dev.release = rtd_release; rtd->dev.init_name = dai_link->name; ret =device_register (&rtd->dev);
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 6 lines · Jarkko Nikula
rtd->dev.init_nameis set twice insoc_probe_dai_link. I removed the first assignement fromdai_link->stream_namesince then there won't be sysfs name changes and usuallydai_link->nameseems to fit anyway better for a sysfs directory name.Signed-off-by Jarkko Nikula <[email protected]>
Applied, thanks.