Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: davinci: Use signed type for 'irq' variable

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>

authored by

Alexander Shiyan and committed by
Linus Walleij
58c0f5aa 717f70e3

+2 -1
+2 -1
drivers/gpio/gpio-davinci.c
··· 423 423 424 424 static int davinci_gpio_irq_setup(struct platform_device *pdev) 425 425 { 426 - unsigned gpio, irq, bank; 426 + unsigned gpio, bank; 427 + int irq; 427 428 struct clk *clk; 428 429 u32 binten = 0; 429 430 unsigned ngpio, bank_irq;