]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: omap2: gpmc: Fix gpmc_cs_reserved() return value
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 12 Feb 2013 19:22:19 +0000 (16:22 -0300)
committerJon Hunter <jon-hunter@ti.com>
Mon, 1 Apr 2013 19:53:36 +0000 (14:53 -0500)
commitae9d908abc9e9d858a619faaf4d6647bdf3cb21f
tree4843c746c05a664d066adb84d4f1a9f07e01f57d
parent7b095098ac5d28e865d179588d364a0cf8b0f81f
ARM: omap2: gpmc: Fix gpmc_cs_reserved() return value

Currently gpmc_cs_reserved() return value is somewhat inconsistent,
returning a negative value on an error condition, a positive value
if the chip select is reserved and zero if it's available.

Fix this by returning a boolean value as the function name suggests:
  * true if the chip select is reserved,
  * false if it's available

Suggested-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
arch/arm/mach-omap2/gpmc.c