gpio: tz1090: Fix error handling of irq_of_parse_and_map
authorDmitry Torokhov <dtor@chromium.org>
Fri, 14 Nov 2014 21:32:56 +0000 (13:32 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Nov 2014 13:34:47 +0000 (14:34 +0100)
commit842e528e1abf1edaa6467c6dbda299ec724cb42a
treecc91183b4010bf35c73bd80395654def52f68d47
parentd0c3d95ae27a54f283a7acc5ead5bd8a15441a92
gpio: tz1090: Fix error handling of irq_of_parse_and_map

irq_of_parse_and_map() returns 0 on error, so testing for negative
result never works.

Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tz1090.c