summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-04-08 20:43:38 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-04-08 20:43:38 +0200
commitc3df1c7c36aa55fa76d77d57383af334856ab9f8 (patch)
tree2b6ee459d9559814bb5eccf9442afe2bea30f619 /Documentation
parentMerge tag 'powerpc-4.11-7' of git://git.kernel.org/pub/scm/linux/kernel/git/p... (diff)
parentpinctrl: core: Fix pinctrl_register_and_init() with pinctrl_enable() (diff)
downloadlinux-c3df1c7c36aa55fa76d77d57383af334856ab9f8.tar.xz
linux-c3df1c7c36aa55fa76d77d57383af334856ab9f8.zip
Merge tag 'pinctrl-v4.11-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control fix from Linus Walleij: "This late fix for pin control is hopefully the last I send this cycle. The problem was detected early in the v4.11 release cycle and there has been some back and forth on how to solve it. Sadly the proper fix arrives late, but at least not too late. An issue was detected with pin control on the Freescale i.MX after the refactorings for more general group and function handling. We now have the proper fix for this" * tag 'pinctrl-v4.11-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: pinctrl: core: Fix pinctrl_register_and_init() with pinctrl_enable()
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/pinctrl.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index 54bd5faa8782..f2af35f6d6b2 100644
--- a/Documentation/pinctrl.txt
+++ b/Documentation/pinctrl.txt
@@ -77,9 +77,15 @@ static struct pinctrl_desc foo_desc = {
int __init foo_probe(void)
{
+ int error;
+
struct pinctrl_dev *pctl;
- return pinctrl_register_and_init(&foo_desc, <PARENT>, NULL, &pctl);
+ error = pinctrl_register_and_init(&foo_desc, <PARENT>, NULL, &pctl);
+ if (error)
+ return error;
+
+ return pinctrl_enable(pctl);
}
To enable the pinctrl subsystem and the subgroups for PINMUX and PINCONF and