pinctrl: sx150x: Unregister the pinctrl on release
authorPeter Rosin <peda@axentia.se>
Wed, 17 Jan 2018 13:34:21 +0000 (14:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:23:08 +0000 (20:23 +0100)
commit89cad3fa54919ba00004e0e202f549391a074a7c
tree33176ff7f826e36329220e34eb1a1949b830f8bc
parent688d1b8c4721e247649383bbfcafedca3cdff89a
pinctrl: sx150x: Unregister the pinctrl on release

commit 0657cb50b5a75abd92956028727dc255d690a4a6 upstream.

There is no matching call to pinctrl_unregister, so switch to the
managed devm_pinctrl_register to clean up properly when done.

Fixes: 9e80f9064e73 ("pinctrl: Add SX150X GPIO Extender Pinctrl Driver")
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