Commit 1064a2b4 authored by Alexandre TORGUE's avatar Alexandre TORGUE Committed by Linus Walleij

pinctrl: stm32: remove dependency with interrupt controller

This patch allows to probe stm32 pinctrl driver even if no interrupt
controller is defined to manage gpio irqs.
Signed-off-by: default avatarAlexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c35e7790
...@@ -1092,9 +1092,11 @@ int stm32_pctl_probe(struct platform_device *pdev) ...@@ -1092,9 +1092,11 @@ int stm32_pctl_probe(struct platform_device *pdev)
return -EINVAL; return -EINVAL;
} }
if (of_find_property(np, "interrupt-parent", NULL)) {
ret = stm32_pctrl_dt_setup_irq(pdev, pctl); ret = stm32_pctrl_dt_setup_irq(pdev, pctl);
if (ret) if (ret)
return ret; return ret;
}
for_each_child_of_node(np, child) for_each_child_of_node(np, child)
if (of_property_read_bool(child, "gpio-controller")) if (of_property_read_bool(child, "gpio-controller"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment