summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2014-04-24 11:13:59 (GMT)
committerMark Brown <broonie@linaro.org>2014-04-24 12:20:11 (GMT)
commit966b8063607fbf43c8fdeef579fd8de8a35ca45d (patch)
tree48844d2a484bd0daaacf1c96f0a8a7594c08b024 /sound
parent50e6c718a1eb2ae6d05f22615d8268b026175a4a (diff)
downloadlinux-966b8063607fbf43c8fdeef579fd8de8a35ca45d.tar.xz
ASoC: simple-card: Simplify error msg in simple_card_dai_link_of()
It would look better to use prop instead. Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/generic/simple-card.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index 383a4a1..c091557 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -166,8 +166,7 @@ static int simple_card_dai_link_of(struct device_node *node,
np = of_get_child_by_name(node, prop);
if (!np) {
ret = -EINVAL;
- dev_err(dev, "%s: Can't find simple-audio-card,cpu DT node\n",
- __func__);
+ dev_err(dev, "%s: Can't find %s DT node\n", __func__, prop);
goto dai_link_of_err;
}
@@ -198,8 +197,7 @@ static int simple_card_dai_link_of(struct device_node *node,
np = of_get_child_by_name(node, prop);
if (!np) {
ret = -EINVAL;
- dev_err(dev, "%s: Can't find simple-audio-card,codec DT node\n",
- __func__);
+ dev_err(dev, "%s: Can't find %s DT node\n", __func__, prop);
goto dai_link_of_err;
}