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

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

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
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1092,9 +1092,11 @@ int stm32_pctl_probe(struct platform_device *pdev)
		return -EINVAL;
	}

	if (of_find_property(np, "interrupt-parent", NULL)) {
		ret = stm32_pctrl_dt_setup_irq(pdev, pctl);
		if (ret)
			return ret;
	}

	for_each_child_of_node(np, child)
		if (of_property_read_bool(child, "gpio-controller"))