summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPramod Gurav <pramod.gurav@smartplayin.com>2014-10-02 00:08:04 +0530
committerLinus Walleij <linus.walleij@linaro.org>2014-10-28 16:11:19 +0100
commit65fdc966c012b62ce4da5bf8175140a9b2ec2ee7 (patch)
tree4588632c8e78a4bd5895f2e82efb86b46fb2df0f /drivers
parent1972c97db5b0c125918f662cd084c7d5370674c0 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-grgpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-grgpio.c b/drivers/gpio/gpio-grgpio.c
index 66ad3df9d9c..38acdcea979 100644
--- a/drivers/gpio/gpio-grgpio.c
+++ b/drivers/gpio/gpio-grgpio.c
@@ -441,6 +441,7 @@ static int grgpio_probe(struct platform_device *ofdev)
err = gpiochip_add(gc);
if (err) {
dev_err(&ofdev->dev, "Could not add gpiochip\n");
+ irq_domain_remove(priv->domain);
return err;
}