]> git.karo-electronics.de Git - linux-beck.git/commit
pinctrl: imx: Fix the logic checking if not able to find pin reg map
authorAxel Lin <axel.lin@ingics.com>
Tue, 13 Nov 2012 01:00:07 +0000 (09:00 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Nov 2012 11:03:07 +0000 (12:03 +0100)
commit8d1c6ef67a4530ee5dbd5038d2959a54593013b1
tree1a88a7c3a4f82e984e5235af1ac09796130b343f
parent102caad905d919cc981f8ce799e5a63b6889b979
pinctrl: imx: Fix the logic checking if not able to find pin reg map

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