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)
commit58c0f5aa124534af16d7faaf1abdfa0d9fec8290
treeb51cd9e948f9a6a29bcdfb1acf6aa2afecfae5f1
parent717f70e39a98867751f6a3eb94cc281f3da32685
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>
drivers/gpio/gpio-davinci.c