ASoC: Remove extra rtd->dev.init_name assignment in soc_probe_dai_link
authorJarkko Nikula <jhnikula@gmail.com>
Tue, 21 Sep 2010 12:36:49 +0000 (15:36 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 21 Sep 2010 17:43:01 +0000 (18:43 +0100)
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>
sound/soc/soc-core.c

index ab01e39a0a815cff6cd84ca030ad54339549a4f7..e9968ffecd1c5331705b10f13bc5ccc1dd8e42ba 100644 (file)
@@ -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);