Commit 966b8063 authored by Nicolin Chen's avatar Nicolin Chen Committed by Mark Brown

ASoC: simple-card: Simplify error msg in simple_card_dai_link_of()

It would look better to use prop instead.
Signed-off-by: default avatarNicolin Chen <Guangyu.Chen@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 50e6c718
...@@ -166,8 +166,7 @@ static int simple_card_dai_link_of(struct device_node *node, ...@@ -166,8 +166,7 @@ static int simple_card_dai_link_of(struct device_node *node,
np = of_get_child_by_name(node, prop); np = of_get_child_by_name(node, prop);
if (!np) { if (!np) {
ret = -EINVAL; ret = -EINVAL;
dev_err(dev, "%s: Can't find simple-audio-card,cpu DT node\n", dev_err(dev, "%s: Can't find %s DT node\n", __func__, prop);
__func__);
goto dai_link_of_err; goto dai_link_of_err;
} }
...@@ -198,8 +197,7 @@ static int simple_card_dai_link_of(struct device_node *node, ...@@ -198,8 +197,7 @@ static int simple_card_dai_link_of(struct device_node *node,
np = of_get_child_by_name(node, prop); np = of_get_child_by_name(node, prop);
if (!np) { if (!np) {
ret = -EINVAL; ret = -EINVAL;
dev_err(dev, "%s: Can't find simple-audio-card,codec DT node\n", dev_err(dev, "%s: Can't find %s DT node\n", __func__, prop);
__func__);
goto dai_link_of_err; goto dai_link_of_err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment