diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2013-02-17 19:42:48 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-16 21:48:29 -0700 |
commit | aabc281d18eef3106c9f58c06e466a9ffdf33759 (patch) | |
tree | 44758f095fede0ef38d5018b078cc4d312bd2eb7 /arch | |
parent | b5caeae8219e3b90000e7413e2e0a272db8e2c20 (diff) |
gpio: fix wrong checking condition for gpio range
commit ad4e1a7caf937ad395ced585ca85a7d14395dc80 upstream.
If index++ calculates from 0, the checking condition of "while
(index++)" fails & it doesn't check any more. It doesn't follow
the loop that used at here.
Replace it by endless loop at here. Then it keeps parsing
"gpio-ranges" property until it ends.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions