diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-07 04:00:54 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 17:31:07 +0200 |
commit | c8fc657e6a114fadf78fdf8103e289a169c91c5d (patch) | |
tree | 1520389a952ea5f9d624f06d054b7d68f5802b2f /drivers/gpio | |
parent | Blackfin SPI Driver: Make mmc_spi driver work on Blackfin (diff) | |
download | linux-c8fc657e6a114fadf78fdf8103e289a169c91c5d.tar.xz linux-c8fc657e6a114fadf78fdf8103e289a169c91c5d.zip |
spi: limit reaches -1, tested 0
With a postfix decrement limit will reach -1 rather than 0, so the warning
will not be issued.
Also, add a cpu_relax() into the busy-wait loop.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Mariusz Ceier <mceier@gmail.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions