Commit 58c0f5aa authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Linus Walleij

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: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 717f70e3
...@@ -423,7 +423,8 @@ static const struct irq_domain_ops davinci_gpio_irq_ops = { ...@@ -423,7 +423,8 @@ static const struct irq_domain_ops davinci_gpio_irq_ops = {
static int davinci_gpio_irq_setup(struct platform_device *pdev) static int davinci_gpio_irq_setup(struct platform_device *pdev)
{ {
unsigned gpio, irq, bank; unsigned gpio, bank;
int irq;
struct clk *clk; struct clk *clk;
u32 binten = 0; u32 binten = 0;
unsigned ngpio, bank_irq; unsigned ngpio, bank_irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment