[PATCH 6/9] plat-nomadik: type secondary IRQ correctly

Linus Walleij linus.walleij at stericsson.com
Tue Feb 8 04:20:51 EST 2011


From: Virupax Sadashivpetimath <virupax.sadashivpetimath at stericsson.com>

Coverity found that we were checking an unsigned variable for
greater than zero. Type it correctly.

Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath at stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
Signed-off-by: Linus Walleij <linus.walleij at stericsson.com>
---
 arch/arm/plat-nomadik/gpio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c
index 71682a8..cc9de59 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 */
-- 
1.7.3.2




More information about the linux-arm-kernel mailing list