]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
gpio: davinci: Use signed type for 'irq' variable
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 15 Feb 2014 13:12:05 +0000 (17:12 +0400)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Feb 2014 13:50:50 +0000 (14:50 +0100)
Variable 'irq' is declared as unsigned and then used to store
negative return values from irq_alloc_descs() such as -EINVAL.
This patch fix this by declaring the variable as a signed.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c

index 7629b4f12b7fd8fbeba71bc72e8768f6a41936f6..29321eea3c443e05159720b32f79db55bfd3de51 100644 (file)
@@ -423,7 +423,8 @@ static const struct irq_domain_ops davinci_gpio_irq_ops = {
 
 static int davinci_gpio_irq_setup(struct platform_device *pdev)
 {
-       unsigned        gpio, irq, bank;
+       unsigned        gpio, bank;
+       int             irq;
        struct clk      *clk;
        u32             binten = 0;
        unsigned        ngpio, bank_irq;