gpio: ftgpio010: Fix platform_get_irq's error checking
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 2 Dec 2017 17:01:01 +0000 (22:31 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:35 +0000 (22:42 +0100)
commit4070a53496ec0c94fda1da0773eee2e5a5bd0084
treec01e8132d4db732a0e5db254cc82446bba0180f9
parent1b43d26985745901c87e0dca44c9b57896062306
gpio: ftgpio010: Fix platform_get_irq's error checking

The platform_get_irq() function returns negative if an error occurs.
zero or positive number on success. platform_get_irq() error checking
for zero is not correct.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ftgpio010.c