summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-08-18 20:43:33 +0800
committerLinus Walleij <linus.walleij@linaro.org>2013-08-23 08:56:28 +0200
commite2b86b8481502f3f3039a31aa1a85b8a29e246f1 (patch)
tree14e317f96ed67790ef52a9302b3c2ae5b9656bcb
parent5ffbe2e613873222474a0f575296187002a8995d (diff)
Documentation: pinctrl: Fix example code for pinctrl_register
pinctrl_register() returns NULL on error, fix it. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--Documentation/pinctrl.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index e7bee9bab032..c0ffd30eb55e 100644
--- a/Documentation/pinctrl.txt
+++ b/Documentation/pinctrl.txt
@@ -81,7 +81,7 @@ int __init foo_probe(void)
struct pinctrl_dev *pctl;
pctl = pinctrl_register(&foo_desc, <PARENT>, NULL);
- if (IS_ERR(pctl))
+ if (!pctl)
pr_err("could not register foo pin driver\n");
}