Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1504892
| From | Alexandre TORGUE <alexandre.torgue@st.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] pinctrl: stm32: remove dependency with interrupt controller |
| Date | 2016-10-20 15:30 +0200 |
| Message-ID | <sulzY-84O-39@gated-at.bofh.it> (permalink) |
| References | <sulzY-84O-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch allows to probe stm32 pinctrl driver even if no interrupt
controller is defined to manage gpio irqs.
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index 200667f..efc4371 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -1092,9 +1092,11 @@ int stm32_pctl_probe(struct platform_device *pdev)
return -EINVAL;
}
- ret = stm32_pctrl_dt_setup_irq(pdev, pctl);
- if (ret)
- return ret;
+ 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"))
--
1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] pinctrl: stm32: remove dependency with interrupt controller Alexandre TORGUE <alexandre.torgue@st.com> - 2016-10-20 15:30 +0200 Re: [PATCH 1/2] pinctrl: stm32: remove dependency with interrupt controller Linus Walleij <linus.walleij@linaro.org> - 2016-10-24 02:00 +0200
csiph-web