omap: Should cs be positive in gpmc_cs_free()?
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 22 Nov 2009 18:04:35 +0000 (10:04 -0800)
committerTony Lindgren <tony@atomide.com>
Sun, 22 Nov 2009 18:04:35 +0000 (10:04 -0800)
commit43b5a1d981a651433d79209abb92d974d096c8c3
treef9960cb9c3656d9434692c02e5b60e61984dd780
parent2ddc3850beab2e2a9f97eef96f9093ac717dfa07
omap: Should cs 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>
Acked-by: Tony Lindgren <tony@atomide.com>