diff options
Diffstat (limited to 'drivers/pinctrl/devicetree.c')
-rw-r--r-- | drivers/pinctrl/devicetree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pinctrl/devicetree.c b/drivers/pinctrl/devicetree.c index fe2d1af7cfa0..fd40a11ad645 100644 --- a/drivers/pinctrl/devicetree.c +++ b/drivers/pinctrl/devicetree.c | |||
@@ -141,6 +141,11 @@ static int dt_to_map_one_config(struct pinctrl *p, const char *statename, | |||
141 | pctldev = find_pinctrl_by_of_node(np_pctldev); | 141 | pctldev = find_pinctrl_by_of_node(np_pctldev); |
142 | if (pctldev) | 142 | if (pctldev) |
143 | break; | 143 | break; |
144 | /* Do not defer probing of hogs (circular loop) */ | ||
145 | if (np_pctldev == p->dev->of_node) { | ||
146 | of_node_put(np_pctldev); | ||
147 | return -ENODEV; | ||
148 | } | ||
144 | } | 149 | } |
145 | of_node_put(np_pctldev); | 150 | of_node_put(np_pctldev); |
146 | 151 | ||