projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896af83
)
power: reset: zx-reboot: Unmap region obtained by of_iomap
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Wed, 14 Sep 2016 11:05:31 +0000
(16:35 +0530)
committer
Sebastian Reichel
<sre@kernel.org>
Mon, 19 Sep 2016 19:25:41 +0000
(21:25 +0200)
Free memory mapping, if probe is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/zx-reboot.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/reset/zx-reboot.c
b/drivers/power/reset/zx-reboot.c
index a5b009673d0ee98be2716960f16bcbcda1de8c17..b0b1eb3a78c289090fef365d2e5772a924659ae5 100644
(file)
--- a/
drivers/power/reset/zx-reboot.c
+++ b/
drivers/power/reset/zx-reboot.c
@@
-58,9
+58,12
@@
static int zx_reboot_probe(struct platform_device *pdev)
}
err = register_restart_handler(&zx_restart_nb);
- if (err)
+ if (err) {
+ iounmap(base);
+ iounmap(pcu_base);
dev_err(&pdev->dev, "Register restart handler failed(err=%d)\n",
err);
+ }
return err;
}