Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: Quiet logging about missing DT nodes when not using DT

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>

authored by

Mark Brown and committed by
Linus Walleij
5d88dcea 97e00faa

+3 -1
+3 -1
drivers/pinctrl/devicetree.c
··· 186 186 187 187 /* CONFIG_OF enabled, p->dev not instantiated from DT */ 188 188 if (!np) { 189 - dev_dbg(p->dev, "no of_node; not parsing pinctrl DT\n"); 189 + if (of_have_populated_dt()) 190 + dev_dbg(p->dev, 191 + "no of_node; not parsing pinctrl DT\n"); 190 192 return 0; 191 193 } 192 194