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:
6ce4eac
)
pinctrl: rockchip: testing the wrong variable
author
Dan Carpenter
<
[email protected]
>
Fri, 8 Nov 2013 10:01:38 +0000
(
02:01
-0800)
committer
Linus Walleij
<
[email protected]
>
Mon, 25 Nov 2013 08:08:18 +0000
(09:08 +0100)
There is a copy and paste bug so we test "info->reg_base" instead of
"info->reg_pull".
Signed-off-by: Dan Carpenter <
[email protected]
>
Acked-by: Heiko Stuebner <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/pinctrl/pinctrl-rockchip.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-rockchip.c
b/drivers/pinctrl/pinctrl-rockchip.c
index e939c28cbf1fe13573f7538a2e9d01071b094aa1..fe2ec1bdf56ed4778fe074119cf4148b2aa8358e 100644
(file)
--- a/
drivers/pinctrl/pinctrl-rockchip.c
+++ b/
drivers/pinctrl/pinctrl-rockchip.c
@@
-1453,8
+1453,8
@@
static int rockchip_pinctrl_probe(struct platform_device *pdev)
if (ctrl->type == RK3188) {
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
info->reg_pull = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(info->reg_
base
))
- return PTR_ERR(info->reg_
base
);
+ if (IS_ERR(info->reg_
pull
))
+ return PTR_ERR(info->reg_
pull
);
}
ret = rockchip_gpiolib_register(pdev, info);