Re: [PATCH] Documentation: pinctrl: Fix example code for pinctrl_register
On Sun, Aug 18, 2013 at 2:43 PM, Axel Lin wrote: > pinctrl_register() returns NULL on error, fix it. > > Signed-off-by: Axel Lin Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] Documentation: pinctrl: Fix example code for pinctrl_register
On Sun, Aug 18, 2013 at 2:43 PM, Axel Lin axel@ingics.com wrote: pinctrl_register() returns NULL on error, fix it. Signed-off-by: Axel Lin axel@ingics.com Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Documentation: pinctrl: Fix example code for pinctrl_register
pinctrl_register() returns NULL on error, fix it. Signed-off-by: Axel Lin --- 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(_desc, , NULL); - if (IS_ERR(pctl)) + if (!pctl) pr_err("could not register foo pin driver\n"); } -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Documentation: pinctrl: Fix example code for pinctrl_register
pinctrl_register() returns NULL on error, fix it. Signed-off-by: Axel Lin axel@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 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/