projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dc488e
)
pinctrl: vt8500: wmt: Fix checking return value of pinctrl_register()
author
Axel Lin
<axel.lin@ingics.com>
Tue, 9 Apr 2013 15:59:58 +0000
(23:59 +0800)
committer
Arnd Bergmann
<arnd@arndb.de>
Fri, 19 Apr 2013 15:16:36 +0000
(17:16 +0200)
pinctrl_register() returns NULL on error.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/pinctrl/vt8500/pinctrl-wmt.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/vt8500/pinctrl-wmt.c
b/drivers/pinctrl/vt8500/pinctrl-wmt.c
index
14400a7
..
ab63104
100644
(file)
--- 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;
}