summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-01-02 17:01:50 +0400
committerMark Brown <broonie@linaro.org>2014-01-02 17:01:50 +0400
commit729b47a007345d0af214f7f64a784c6bb3ad4832 (patch)
treed7e7a2f28dd07f7106c6eec1f44ca637cdf22614 /sound/soc/soc-core.c
parent30010a279657144f7de0a94f89896e4e2d3bbb75 (diff)
parente41975edc73d2c16d0784e5fa87a6162e2fcab80 (diff)
downloadlinux-729b47a007345d0af214f7f64a784c6bb3ad4832.tar.xz
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index a66783e13a9c..be88df5eeaf7 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -4617,10 +4617,14 @@ int snd_soc_of_get_dai_name(struct device_node *of_node,
if (id < 0 || id >= pos->num_dai) {
ret = -EINVAL;
- } else {
- *dai_name = pos->dai_drv[id].name;
- ret = 0;
+ break;
}
+
+ ret = 0;
+
+ *dai_name = pos->dai_drv[id].name;
+ if (!*dai_name)
+ *dai_name = pos->name;
}
break;