[PATCH v8 02/12] gpio: fix wrong checking condition for gpio range

Linus Walleij linus.walleij at linaro.org
Tue Feb 5 12:02:47 EST 2013


On Sat, Feb 2, 2013 at 6:25 PM, Haojian Zhuang
<haojian.zhuang at linaro.org> wrote:

> 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 at linaro.org>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list