Skip to content
GitLab
  • Explore
  • Sign in
  • Register
  • xcap
  • xcap-capability-linux
  • Repository
  • xcap-capability-linux
  • drivers
  • spi
  • spi_imx.c
Find file Blame History Permalink
  • Roel Kluin's avatar
    spi: limit reaches -1, tested 0 · c8fc657e
    Roel Kluin authored Apr 06, 2009
    
    
    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: default avatarRoel Kluin <roel.kluin@gmail.com>
    Cc: Mariusz Ceier <mceier@gmail.com>
    Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c8fc657e