Skip to content

Commit

Permalink
mmc: dw_mmc: convert the variable type of irq
Browse files Browse the repository at this point in the history
Even though platform_get_irq returns error, 'host->irq'
always has an unsigned value. Less-than-zero comparison
of an unsigned value is never true. Type of 'unsigned int'
will be changed for 'int'.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Seungwon Jeon authored and Chris Ball committed Nov 7, 2012
1 parent ddffeb8 commit d676188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/mmc/dw_mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ struct dw_mci {

struct regulator *vmmc; /* Power regulator */
unsigned long irq_flags; /* IRQ flags */
unsigned int irq;
int irq;
};

/* DMA ops for Internal/External DMAC interface */
Expand Down

0 comments on commit d676188

Please sign in to comment.