提交 966b8063 编写于 作者: N Nicolin Chen 提交者: 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: NNicolin Chen <Guangyu.Chen@freescale.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 50e6c718
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册