From 2c8bb0eba96f6027ea1e6cf52376e07d18f54ddc Mon Sep 17 00:00:00 2001 From: Virupax Sadashivpetimath Date: Thu, 11 Nov 2010 14:10:38 +0530 Subject: [PATCH] plat-nomadik: type secondary IRQ correctly Coverity found that we were checking an unsigned variable for >= zero. Type it correctly so that the check works as intended. Signed-off-by: Virupax Sadashivpetimath Signed-off-by: Linus Walleij --- arch/arm/plat-nomadik/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c index 71682a87a878..cc9de5964d89 100644 --- a/arch/arm/plat-nomadik/gpio.c +++ b/arch/arm/plat-nomadik/gpio.c @@ -53,7 +53,7 @@ struct nmk_gpio_chip { struct clk *clk; unsigned int bank; unsigned int parent_irq; - unsigned int secondary_parent_irq; + int secondary_parent_irq; u32 (*get_secondary_status)(unsigned int bank); spinlock_t lock; /* Keep track of configured edges */