gpio: grgpio: remove irq_domain resources on failure
authorPramod Gurav <pramod.gurav@smartplayin.com>
Wed, 1 Oct 2014 18:38:04 +0000 (00:08 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Oct 2014 15:11:19 +0000 (16:11 +0100)
commit65fdc966c012b62ce4da5bf8175140a9b2ec2ee7
tree4588632c8e78a4bd5895f2e82efb86b46fb2df0f
parent1972c97db5b0c125918f662cd084c7d5370674c0
gpio: grgpio: remove irq_domain resources on failure

Call irq_domain_remove when gpiochip_add fails to release irq_domain
resources.

Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-grgpio.c