From: Nicolin Chen Date: Thu, 24 Apr 2014 11:13:59 +0000 (+0800) Subject: ASoC: simple-card: Simplify error msg in simple_card_dai_link_of() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=966b8063607fbf43c8fdeef579fd8de8a35ca45d;p=linux-beck.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 383a4a18d51f..c091557666d5 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -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; }