Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d88dcea authored by Mark Brown's avatar Mark Brown Committed by Linus Walleij
Browse files

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: default avatarMark Brown <broonie@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 97e00faa
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -186,7 +186,9 @@ int pinctrl_dt_to_map(struct pinctrl *p)


	/* CONFIG_OF enabled, p->dev not instantiated from DT */
	/* CONFIG_OF enabled, p->dev not instantiated from DT */
	if (!np) {
	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;
		return 0;
	}
	}