pinctrl: sx150x: Register pinctrl before adding the gpiochip
authorPeter Rosin <peda@axentia.se>
Wed, 17 Jan 2018 13:34:22 +0000 (14:34 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Jan 2018 10:04:43 +0000 (11:04 +0100)
commit1a1d39e1b8dd1d0f92a79da4fcc1ab0be3ae9bfc
tree90a7f0e3e640bfb36535c0aa9a851fe44b06a38b
parent0657cb50b5a75abd92956028727dc255d690a4a6
pinctrl: sx150x: Register pinctrl before adding the gpiochip

Various gpiolib activity depend on the pinctrl to be up and kicking.
Therefore, register the pinctrl before adding a gpiochip.

Cc: stable@vger.kernel.org
Suggested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sx150x.c