diff options
Diffstat (limited to 'drivers/pinctrl/devicetree.c')
-rw-r--r-- | drivers/pinctrl/devicetree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pinctrl/devicetree.c b/drivers/pinctrl/devicetree.c index 340fb4e6c600..eda13de2e7c0 100644 --- a/drivers/pinctrl/devicetree.c +++ b/drivers/pinctrl/devicetree.c | |||
@@ -186,7 +186,9 @@ int pinctrl_dt_to_map(struct pinctrl *p) | |||
186 | 186 | ||
187 | /* CONFIG_OF enabled, p->dev not instantiated from DT */ | 187 | /* CONFIG_OF enabled, p->dev not instantiated from DT */ |
188 | if (!np) { | 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 | return 0; | 192 | return 0; |
191 | } | 193 | } |
192 | 194 | ||