Skip to content

Commit

Permalink
ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_st…
Browse files Browse the repository at this point in the history
…art'

'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>
  • Loading branch information
Chen Gang authored and Tony Lindgren committed Aug 22, 2013
1 parent a04feb0 commit af07219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ struct omap3_gpmc_regs {

static struct gpmc_client_irq gpmc_client_irq[GPMC_NR_IRQ];
static struct irq_chip gpmc_irq_chip;
static unsigned gpmc_irq_start;
static int gpmc_irq_start;

static struct resource gpmc_mem_root;
static struct resource gpmc_cs_mem[GPMC_CS_NUM];
Expand Down

0 comments on commit af07219

Please sign in to comment.