]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pinctrl: Quiet logging about missing DT nodes when not using DT
authorMark Brown <broonie@linaro.org>
Thu, 30 Jan 2014 18:57:20 +0000 (18:57 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Feb 2014 09:44:54 +0000 (10:44 +0100)
On systems which were not booted using DT it is entirely unsurprising that
device nodes don't have any DT information and this is going to happen for
every single device in the system. Make pinctrl be less chatty about this
situation by only logging in the case where we have DT.

Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/devicetree.c

index 340fb4e6c600393f0504e6d6cd5f7adc9cbad29e..eda13de2e7c0d110f5e105a84b5b19da93cadc36 100644 (file)
@@ -186,7 +186,9 @@ int pinctrl_dt_to_map(struct pinctrl *p)
 
        /* CONFIG_OF enabled, p->dev not instantiated from DT */
        if (!np) {
-               dev_dbg(p->dev, "no of_node; not parsing pinctrl DT\n");
+               if (of_have_populated_dt())
+                       dev_dbg(p->dev,
+                               "no of_node; not parsing pinctrl DT\n");
                return 0;
        }