pinctrl: sx150x: Register pinctrl before adding the gpiochip
authorPeter Rosin <peda@axentia.se>
Wed, 17 Jan 2018 13:34:22 +0000 (14:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:23:08 +0000 (20:23 +0100)
commit5219eedf2d5e19fdcd03aa685426eb891be85af6
tree82dd987ed3b8de05dbc8c695b56a94138765afd7
parent89cad3fa54919ba00004e0e202f549391a074a7c
pinctrl: sx150x: Register pinctrl before adding the gpiochip

commit 1a1d39e1b8dd1d0f92a79da4fcc1ab0be3ae9bfc upstream.

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/pinctrl-sx150x.c