gpio: fix test on unsigned in lnw_irq_type()
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 16 Dec 2009 00:46:18 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:00 +0000 (07:20 -0800)
commit4efec6272e8e61fc77132b4d2bae56d61b289956
tree18d7677a8f490f1732da82a99912c042979b29ae
parentafd49a7e92851239c3edffae730cc27080bfab78
gpio: fix test on unsigned in lnw_irq_type()

The wrong test was used, gpio is unsigned and it had an off-by-one.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Alek Du <alek.du@intel.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/langwell_gpio.c