OMAP: cs should be positive in gpmc_cs_free()
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 17 Nov 2009 22:39:06 +0000 (14:39 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 18 Nov 2009 18:34:33 +0000 (10:34 -0800)
commite7fdc6052e78738ce90e0bdc051f2ddf60e41324
treeadb48c1df8d34eb936923631b94c5d470705882a
parentd32b20fc7dad87ac95fcc73fca3606c0db85f210
OMAP: cs should be positive in gpmc_cs_free()

The index `cs' is signed, test whether it is negative before we release
gpmc_cs_mem[cs].

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm/mach-omap2/gpmc.c