projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
102caad
)
pinctrl: imx: Fix the logic checking if not able to find pin reg map
author
Axel Lin
<axel.lin@ingics.com>
Tue, 13 Nov 2012 01:00:07 +0000
(09:00 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 15 Nov 2012 11:03:07 +0000
(12:03 +0100)
Current code sets "pin_reg = &info->pin_regs[i];" in each loop iteration,
so in the case of no-match, pin_reg is not NULL.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-imx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pinctrl/pinctrl-imx.c
b/drivers/pinctrl/pinctrl-imx.c
index f3d2384b34bfb4a4c652606b460ecf9398734628..525a2c8644f62a0fff0fae171efbcced284498ec 100644
(file)
--- a/
drivers/pinctrl/pinctrl-imx.c
+++ b/
drivers/pinctrl/pinctrl-imx.c
@@
-71,7
+71,7
@@
static const struct imx_pin_reg *imx_find_pin_reg(
break;
}
- if (
!pin_reg
) {
+ if (
i == info->npin_regs
) {
dev_err(info->dev, "Pin(%s): unable to find pin reg map\n",
info->pins[pin].name);
return NULL;
This page took
0.024916 seconds
and
5
git commands to generate.