diff options
author | John Ogness <john.ogness@linutronix.de> | 2009-11-24 16:53:07 +0000 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-08 18:48:16 -0700 |
commit | bbd050af0e2b7d77bfc959cf76219eb71c3b982a (patch) | |
tree | 9a4da1f3a330ecdc5c6bbba7494940d74376ce79 /COPYING | |
parent | ce1807b2e527979bd77d8a1a1768a6365f3febb5 (diff) | |
download | kernel_samsung_crespo-bbd050af0e2b7d77bfc959cf76219eb71c3b982a.zip kernel_samsung_crespo-bbd050af0e2b7d77bfc959cf76219eb71c3b982a.tar.gz kernel_samsung_crespo-bbd050af0e2b7d77bfc959cf76219eb71c3b982a.tar.bz2 |
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 <john.ogness@linutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions