* [PATCH] pinctrl: vt8500: wmt: Fix checking return value of pinctrl_register()
@ 2013-04-09 15:59 Axel Lin
2013-04-09 19:30 ` Tony Prisk
0 siblings, 1 reply; 4+ messages in thread
From: Axel Lin @ 2013-04-09 15:59 UTC (permalink / raw)
To: Linus Walleij; +Cc: Tony Prisk, linux-kernel
pinctrl_register() returns NULL on error.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/pinctrl/vt8500/pinctrl-wmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/vt8500/pinctrl-wmt.c b/drivers/pinctrl/vt8500/pinctrl-wmt.c
index 14400a7..ab63104e 100644
--- a/drivers/pinctrl/vt8500/pinctrl-wmt.c
+++ b/drivers/pinctrl/vt8500/pinctrl-wmt.c
@@ -588,7 +588,7 @@ int wmt_pinctrl_probe(struct platform_device *pdev,
data->dev = &pdev->dev;
data->pctl_dev = pinctrl_register(&wmt_desc, &pdev->dev, data);
- if (IS_ERR(data->pctl_dev)) {
+ if (!data->pctl_dev) {
dev_err(&pdev->dev, "Failed to register pinctrl\n");
return -EINVAL;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] pinctrl: vt8500: wmt: Fix checking return value of pinctrl_register()
2013-04-09 15:59 [PATCH] pinctrl: vt8500: wmt: Fix checking return value of pinctrl_register() Axel Lin
@ 2013-04-09 19:30 ` Tony Prisk
2013-04-15 20:29 ` Olof Johansson
0 siblings, 1 reply; 4+ messages in thread
From: Tony Prisk @ 2013-04-09 19:30 UTC (permalink / raw)
To: Axel Lin; +Cc: Linus Walleij, linux-kernel
On 10/04/13 03:59, Axel Lin wrote:
> pinctrl_register() returns NULL on error.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> drivers/pinctrl/vt8500/pinctrl-wmt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/vt8500/pinctrl-wmt.c b/drivers/pinctrl/vt8500/pinctrl-wmt.c
> index 14400a7..ab63104e 100644
> --- a/drivers/pinctrl/vt8500/pinctrl-wmt.c
> +++ b/drivers/pinctrl/vt8500/pinctrl-wmt.c
> @@ -588,7 +588,7 @@ int wmt_pinctrl_probe(struct platform_device *pdev,
> data->dev = &pdev->dev;
>
> data->pctl_dev = pinctrl_register(&wmt_desc, &pdev->dev, data);
> - if (IS_ERR(data->pctl_dev)) {
> + if (!data->pctl_dev) {
> dev_err(&pdev->dev, "Failed to register pinctrl\n");
> return -EINVAL;
> }
Not sure why I missed this...
Linus,
If you're happy with this patch, I'll forward it on to arm-soc to go in
with the rest.
Regards
Tony P
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pinctrl: vt8500: wmt: Fix checking return value of pinctrl_register()
2013-04-09 19:30 ` Tony Prisk
@ 2013-04-15 20:29 ` Olof Johansson
2013-04-15 20:32 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Olof Johansson @ 2013-04-15 20:29 UTC (permalink / raw)
To: Tony Prisk; +Cc: Axel Lin, Linus Walleij, linux-kernel
On Wed, Apr 10, 2013 at 07:30:36AM +1200, Tony Prisk wrote:
> On 10/04/13 03:59, Axel Lin wrote:
> >pinctrl_register() returns NULL on error.
> >
> >Signed-off-by: Axel Lin <axel.lin@ingics.com>
> >---
> > drivers/pinctrl/vt8500/pinctrl-wmt.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/drivers/pinctrl/vt8500/pinctrl-wmt.c b/drivers/pinctrl/vt8500/pinctrl-wmt.c
> >index 14400a7..ab63104e 100644
> >--- a/drivers/pinctrl/vt8500/pinctrl-wmt.c
> >+++ b/drivers/pinctrl/vt8500/pinctrl-wmt.c
> >@@ -588,7 +588,7 @@ int wmt_pinctrl_probe(struct platform_device *pdev,
> > data->dev = &pdev->dev;
> > data->pctl_dev = pinctrl_register(&wmt_desc, &pdev->dev, data);
> >- if (IS_ERR(data->pctl_dev)) {
> >+ if (!data->pctl_dev) {
> > dev_err(&pdev->dev, "Failed to register pinctrl\n");
> > return -EINVAL;
> > }
> Not sure why I missed this...
>
> Linus,
> If you're happy with this patch, I'll forward it on to arm-soc to go
> in with the rest.
I was asked to apply this directly, and have done so (to next/drivers).
-Olof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pinctrl: vt8500: wmt: Fix checking return value of pinctrl_register()
2013-04-15 20:29 ` Olof Johansson
@ 2013-04-15 20:32 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2013-04-15 20:32 UTC (permalink / raw)
To: Olof Johansson; +Cc: Tony Prisk, Axel Lin, linux-kernel@vger.kernel.org
On Mon, Apr 15, 2013 at 10:29 PM, Olof Johansson <olof@lixom.net> wrote:
> On Wed, Apr 10, 2013 at 07:30:36AM +1200, Tony Prisk wrote:
>> Linus,
>> If you're happy with this patch, I'll forward it on to arm-soc to go
>> in with the rest.
>
> I was asked to apply this directly, and have done so (to next/drivers).
That's cool,
Acked-by.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-15 20:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 15:59 [PATCH] pinctrl: vt8500: wmt: Fix checking return value of pinctrl_register() Axel Lin
2013-04-09 19:30 ` Tony Prisk
2013-04-15 20:29 ` Olof Johansson
2013-04-15 20:32 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox