]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7d2402a6609542963f9a570e5d1f1c0c26e9ff2
tree2cf57d952ea6399ce65bad2f172090c278cc2c28
parent1698d08792f3ed12ef67d5e9d774b007a236956e
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