Commit af0721966195b3966214edd54af0d5f84d65419a
Committed by
Tony Lindgren
1 parent
a04feb0341
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start'
'gpmc_irq_start' is mostly used as 'int', and for a variable, do not suggest to only use 'unsigned' as its type, so use 'int' instead of 'unsigned' for variable 'gpmc_irq_start'. Also it will fix the related issue (dummy the real world failure): arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
arch/arm/mach-omap2/gpmc.c
... | ... | @@ -149,7 +149,7 @@ |
149 | 149 | |
150 | 150 | static struct gpmc_client_irq gpmc_client_irq[GPMC_NR_IRQ]; |
151 | 151 | static struct irq_chip gpmc_irq_chip; |
152 | -static unsigned gpmc_irq_start; | |
152 | +static int gpmc_irq_start; | |
153 | 153 | |
154 | 154 | static struct resource gpmc_mem_root; |
155 | 155 | static struct resource gpmc_cs_mem[GPMC_CS_NUM]; |