projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
949eb1a
)
drivers: gpio: msm: Fix the error condition for reading ngpio
author
Rohit Vaswani
<
[email protected]
>
Thu, 18 Jul 2013 20:07:14 +0000
(13:07 -0700)
committer
Linus Walleij
<
[email protected]
>
Sat, 20 Jul 2013 21:33:33 +0000
(23:33 +0200)
of_property_read_u32 return 0 on success. The check was using a ! to
return error. Fix the if condition.
Signed-off-by: Rohit Vaswani <
[email protected]
>
Acked-by: Linus Walleij <
[email protected]
>
Reviewed-by: Pankaj Jangra <
[email protected]
>
Cc: "Bird, Tim" <
[email protected]
>
Signed-off-by: David Brown <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/gpio/gpio-msm-v2.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-msm-v2.c
b/drivers/gpio/gpio-msm-v2.c
index f4491a497cc8760ef59484ac2c6c264573b3b8a9..c2fa77086eb58cf9de7f2c2a453c900a9771f0b5 100644
(file)
--- a/
drivers/gpio/gpio-msm-v2.c
+++ b/
drivers/gpio/gpio-msm-v2.c
@@
-378,7
+378,7
@@
static int msm_gpio_probe(struct platform_device *pdev)
int ret, ngpio;
struct resource *res;
- if (
!
of_property_read_u32(pdev->dev.of_node, "ngpio", &ngpio)) {
+ if (of_property_read_u32(pdev->dev.of_node, "ngpio", &ngpio)) {
dev_err(&pdev->dev, "%s: ngpio property missing\n", __func__);
return -EINVAL;
}