Commit bfea6da2 authored by Syed Mohammed Khasim x0khasim@ti.com's avatar Syed Mohammed Khasim x0khasim@ti.com Committed by Tony Lindgren

ARM: OMAP: GPMC driver warning fix

To fix return type for GPMC api.
Signed-off-by: default avatarSyed Mohammed Khasim  <x0khasim@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 4dc314a4
...@@ -264,13 +264,14 @@ static int gpmc_cs_mem_enabled(int cs) ...@@ -264,13 +264,14 @@ static int gpmc_cs_mem_enabled(int cs)
return l & (1 << 6); return l & (1 << 6);
} }
void gpmc_cs_set_reserved(int cs, int reserved) int gpmc_cs_set_reserved(int cs, int reserved)
{ {
if (cs > GPMC_CS_NUM) if (cs > GPMC_CS_NUM)
return -ENODEV; return -ENODEV;
gpmc_cs_map &= ~(1 << cs); gpmc_cs_map &= ~(1 << cs);
gpmc_cs_map |= (reserved ? 1 : 0) << cs; gpmc_cs_map |= (reserved ? 1 : 0) << cs;
return 0;
} }
int gpmc_cs_reserved(int cs) int gpmc_cs_reserved(int cs)
......
...@@ -88,7 +88,7 @@ extern int gpmc_cs_calc_divider(int cs, unsigned int sync_clk); ...@@ -88,7 +88,7 @@ extern int gpmc_cs_calc_divider(int cs, unsigned int sync_clk);
extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t); extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t);
extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base); extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base);
extern void gpmc_cs_free(int cs); extern void gpmc_cs_free(int cs);
extern void gpmc_cs_set_reserved(int cs, int reserved); extern int gpmc_cs_set_reserved(int cs, int reserved);
extern int gpmc_cs_reserved(int cs); extern int gpmc_cs_reserved(int cs);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment