plat-nomadik: type secondary IRQ correctly
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Thu, 11 Nov 2010 08:40:38 +0000 (14:10 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Mar 2011 13:05:15 +0000 (14:05 +0100)
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 <virupax.sadashivpetimath@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/plat-nomadik/gpio.c

index 71682a87a878a682622b438099826b957fabdbbe..cc9de5964d89f9f1bd089e21596cff16b325f346 100644 (file)
@@ -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 */