pinctrl: stm32: check irq controller availability at probe
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 24 Apr 2019 08:08:44 +0000 (10:08 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 3 May 2019 06:53:13 +0000 (07:53 +0100)
commitd86f4d71e42a9fa1866f030074e54d7571d16ec1
tree3fd1850d4b857a976cccd22357d840c0871904e5
parent264667112ef093ff9d970a432c19604a8505df81
pinctrl: stm32: check irq controller availability at probe

It is not guaranteed that the IRQ controller driver is probed before
the pin controller driver gets probed.
Considering this, check for the irq domain availability during probe
and return EPROBE_DEFER if needed.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c