From: Haojian Zhuang Date: Sun, 17 Feb 2013 11:42:48 +0000 (+0800) Subject: gpio: fix wrong checking condition for gpio range X-Git-Tag: v3.9-rc5~35^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad4e1a7caf937ad395ced585ca85a7d14395dc80;p=pandora-kernel.git gpio: fix wrong checking condition for gpio range 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 Reviewed-by: Linus Walleij Signed-off-by: Linus Walleij --- Reading git-diff-tree failed