summaryrefslogtreecommitdiffstats
path: root/mm/Kconfig
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2009-11-24 17:53:07 +0100
committerGrant Likely <grant.likely@secretlab.ca>2009-12-09 02:48:16 +0100
commitbbd050af0e2b7d77bfc959cf76219eb71c3b982a (patch)
tree9a4da1f3a330ecdc5c6bbba7494940d74376ce79 /mm/Kconfig
parentspi/i.mx: drain MXC SPI transfer buffer when probing device (diff)
downloadlinux-bbd050af0e2b7d77bfc959cf76219eb71c3b982a.tar.xz
linux-bbd050af0e2b7d77bfc959cf76219eb71c3b982a.zip
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 'mm/Kconfig')
0 files changed, 0 insertions, 0 deletions