Patch "pinctrl: sx150x: Unregister the pinctrl on release" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
pinctrl: sx150x: Unregister the pinctrl on release
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
pinctrl-sx150x-unregister-the-pinctrl-on-release.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
0657cb50b5a75abd92956028727dc255d690a4a6Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Wed, 17 Jan 2018 14:34:21 +0100
Subject: pinctrl: sx150x: Unregister the pinctrl on release
From: Peter Rosin <[email protected]>
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.
--- drivers/pinctrl/pinctrl-sx150x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-sx150x.c +1 -1
@@ -1225,7 +1225,7 @@ static int sx150x_probe(struct i2c_clien pctl->pinctrl_desc.npins = pctl->data->npins; pctl->pinctrl_desc.owner =THIS_MODULE ; - pctl->pctldev =pinctrl_register (&pctl->pinctrl_desc, dev, pctl); + pctl->pctldev =devm_pinctrl_register (dev, &pctl->pinctrl_desc, pctl);if (IS_ERR (pctl->pctldev)) {dev_err (dev,"Failed to register pinctrl device\n" );return PTR_ERR (pctl->pctldev);
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/pinctrl-sx150x-register-pinctrl-before-adding-the-gpiochip.patch queue-4.14/pinctrl-sx150x-unregister-the-pinctrl-on-release.patch queue-4.14/pinctrl-sx150x-add-a-static-gpio-pinctrl-pin-range-mapping.patch