gpio: em: Fix checking return value of irq_alloc_descs
authorAxel Lin <axel.lin@gmail.com>
Tue, 28 Aug 2012 11:30:44 +0000 (19:30 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 31 Aug 2012 23:18:39 +0000 (01:18 +0200)
commitdd2914972e5f6d9c1a687158c0f65b81d239fe37
tree17ac0aed21b9898bf4844686ca437e9ff329ddfe
parent4c30aa33d4b4ce9a0ee5b32d058a40f4eca2ab63
gpio: em: Fix checking return value of irq_alloc_descs

irq_alloc_descs() returns negative error code on failure.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-em.c