projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1972c97
)
gpio: grgpio: remove irq_domain resources on failure
author
Pramod Gurav
<pramod.gurav@smartplayin.com>
Wed, 1 Oct 2014 18:38:04 +0000
(
00:08
+0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 28 Oct 2014 15:11:19 +0000
(16:11 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-grgpio.c
b/drivers/gpio/gpio-grgpio.c
index
66ad3df
..
38acdce
100644
(file)
--- 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;
}