Skip to content

Commit

Permalink
ASoC: simple-card: Simplify error msg in simple_card_dai_link_of()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolin Chen authored and Mark Brown committed Apr 24, 2014
1 parent 50e6c71 commit 966b806
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sound/soc/generic/simple-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 966b806

Please sign in to comment.