]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
pinctrl: sx150x: Unregister the pinctrl on release
authorPeter Rosin <peda@axentia.se>
Wed, 17 Jan 2018 13:34:21 +0000 (14:34 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:21:53 +0000 (08:21 -0600)
commitc80636c12fbeebae4b214555342e326504120b2f
treeb91057f1608d2d55e556b144d038128c7775282c
parent3df3d1b24f030a5231f737c6131586c86d364fcb
pinctrl: sx150x: Unregister the pinctrl on release

BugLink: http://bugs.launchpad.net/bugs/1751064
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/pinctrl/pinctrl-sx150x.c