* [PATCH] Documentation: pinctrl: Fix example code for pinctrl_register
@ 2013-08-18 12:43 Axel Lin
2013-08-21 21:29 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2013-08-18 12:43 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-kernel
pinctrl_register() returns NULL on error, fix it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
Documentation/pinctrl.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index e7bee9b..c0ffd30 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");
}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: pinctrl: Fix example code for pinctrl_register
2013-08-18 12:43 [PATCH] Documentation: pinctrl: Fix example code for pinctrl_register Axel Lin
@ 2013-08-21 21:29 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2013-08-21 21:29 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel@vger.kernel.org
On Sun, Aug 18, 2013 at 2:43 PM, Axel Lin <axel.lin@ingics.com> wrote:
> pinctrl_register() returns NULL on error, fix it.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-21 21:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-18 12:43 [PATCH] Documentation: pinctrl: Fix example code for pinctrl_register Axel Lin
2013-08-21 21:29 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox