From: John Ogness Date: Tue, 24 Nov 2009 16:53:07 +0000 (+0000) Subject: spi/i.MX: fix broken error handling for gpio_request X-Git-Tag: v2.6.33-rc1~279^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbd050af0e2b7d77bfc959cf76219eb71c3b982a;p=pandora-kernel.git spi/i.MX: fix broken error handling for gpio_request i.MX35-provided chipselects are represented using negative numbers. If gpio_request() fails and the previous chipselect was a negative number, the while loop is endless (i is never decremented). Also, the error loop would never call gpio_free on chipselect[0]. And finally, the error message was missing an endline. Signed-off-by: John Ogness Signed-off-by: Grant Likely --- Reading git-diff-tree failed