mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-12 08:00:09 +00:00
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:
parent
50e6c718a1
commit
966b806360
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user