pinctrl: stm32: check node status before new gpio bank registering
authorAlexandre Torgue <alexandre.torgue@st.com>
Mon, 16 Jul 2018 12:57:37 +0000 (14:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 29 Jul 2018 20:03:33 +0000 (22:03 +0200)
commit17cf082d6d0d1a662f4ff62608c18d3956b85bf6
tree2cf57d952ea6399ce65bad2f172090c278cc2c28
parent3b8283f007cbf09eee64804606af23af5f734d54
pinctrl: stm32: check node status before new gpio bank registering

Register a new GPIO bank only if GPIO bank node is enabled. This patch also
adds checks on ranges which are defined only if a bank is registered.

Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c