diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2010-09-21 08:36:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-21 13:43:01 -0400 |
commit | 0b25ad0571e9208c2bd1302a41ce219794c6f901 (patch) | |
tree | aa6b22d162099058371754d4bfe567aa59aff5de /sound | |
parent | 13f808cf8ddb5f3ca0f0271473c6c02a4b32580b (diff) |
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.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-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 ab01e39a0a81..e9968ffecd1c 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1451,7 +1451,6 @@ static int soc_probe_dai_link(struct snd_soc_card *card, int num) | |||
1451 | snd_soc_dapm_sync(codec); | 1451 | snd_soc_dapm_sync(codec); |
1452 | 1452 | ||
1453 | /* register the rtd device */ | 1453 | /* register the rtd device */ |
1454 | rtd->dev.init_name = rtd->dai_link->stream_name; | ||
1455 | rtd->dev.release = rtd_release; | 1454 | rtd->dev.release = rtd_release; |
1456 | rtd->dev.init_name = dai_link->name; | 1455 | rtd->dev.init_name = dai_link->name; |
1457 | ret = device_register(&rtd->dev); | 1456 | ret = device_register(&rtd->dev); |