From: Lee Jones Date: Mon, 10 Dec 2012 08:55:52 +0000 (+0000) Subject: regulator: gpio-regulator: Fix logical error in for() loop X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~35^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad0b8b9e82b63ad2cc5e6822448adc897f49a5c4;p=pandora-kernel.git regulator: gpio-regulator: Fix logical error in for() loop The cond-statement of this particular for() loop will always be true as long as at least one voltage-shifting GPIO is present. If it wasn't for the break below, we'd be stuck in a forever loop. This patch inserts the correct cond-statement into the statement. Cc: Mark Brown Signed-off-by: Lee Jones Signed-off-by: Mark Brown --- Reading git-diff-tree failed