ASoC: simple-card: Simplify error msg in simple_card_dai_link_of()
authorNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 24 Apr 2014 11:13:59 +0000 (19:13 +0800)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:14:41 +0000 (11:14 +0100)
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>
(cherry picked from commit 966b8063607fbf43c8fdeef579fd8de8a35ca45d)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/generic/simple-card.c

index 383a4a1..c091557 100644 (file)
@@ -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;
        }