projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e2a35
)
gpio: mxs: Unmap region obtained by of_iomap
author
Arvind Yadav
<
[email protected]
>
Wed, 5 Oct 2016 09:38:36 +0000
(15:08 +0530)
committer
Linus Walleij
<
[email protected]
>
Thu, 20 Oct 2016 12:14:11 +0000
(14:14 +0200)
Free memory mapping, if mxs_gpio_probe is not successful.
Signed-off-by: Arvind Yadav <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/gpio/gpio-mxs.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-mxs.c
b/drivers/gpio/gpio-mxs.c
index b9daa0bf32a46375784c2f6ade582ba4c46c4a74..ee1724806f46db13d7eb2b41ce900fd2043b3d91 100644
(file)
--- a/
drivers/gpio/gpio-mxs.c
+++ b/
drivers/gpio/gpio-mxs.c
@@
-308,8
+308,10
@@
static int mxs_gpio_probe(struct platform_device *pdev)
writel(~0U, port->base + PINCTRL_IRQSTAT(port) + MXS_CLR);
irq_base = irq_alloc_descs(-1, 0, 32, numa_node_id());
- if (irq_base < 0)
- return irq_base;
+ if (irq_base < 0) {
+ err = irq_base;
+ goto out_iounmap;
+ }
port->domain = irq_domain_add_legacy(np, 32, irq_base, 0,
&irq_domain_simple_ops, NULL);
@@
-349,6
+351,8
@@
out_irqdomain_remove:
irq_domain_remove(port->domain);
out_irqdesc_free:
irq_free_descs(irq_base, 32);
+out_iounmap:
+ iounmap(port->base);
return err;
}