[PATCH v9 02/10] gpio: fix wrong checking condition for gpio range
Linus Walleij
linus.walleij at linaro.org
Fri Mar 1 07:45:56 EST 2013
On Sun, Feb 17, 2013 at 12:42 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>
Patch applied to the fixes branch for the v3.9-rc series in
my pinctrl tree.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list