diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-02-15 08:12:05 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-02-24 08:50:50 -0500 |
commit | 58c0f5aa124534af16d7faaf1abdfa0d9fec8290 (patch) | |
tree | b51cd9e948f9a6a29bcdfb1acf6aa2afecfae5f1 /drivers/gpio | |
parent | 717f70e39a98867751f6a3eb94cc281f3da32685 (diff) |
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-davinci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 7629b4f12b7f..29321eea3c44 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c | |||
@@ -423,7 +423,8 @@ static const struct irq_domain_ops davinci_gpio_irq_ops = { | |||
423 | 423 | ||
424 | static int davinci_gpio_irq_setup(struct platform_device *pdev) | 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 | struct clk *clk; | 428 | struct clk *clk; |
428 | u32 binten = 0; | 429 | u32 binten = 0; |
429 | unsigned ngpio, bank_irq; | 430 | unsigned ngpio, bank_irq; |