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>
This commit is contained in:
@@ -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,
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user