* [PATCH] power: reset: zx-reboot: Unmap region obtained by of_iomap
@ 2016-09-14 11:05 arvind.yadav.cs
2016-09-19 19:26 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: arvind.yadav.cs @ 2016-09-14 11:05 UTC (permalink / raw)
To: sre, dbaryshkov, dwmw2; +Cc: linux-pm, linux-kernel, Arvind Yadav
From: Arvind Yadav <arvind.yadav.cs@gmail.com>
Free memory mapping, if probe is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/power/reset/zx-reboot.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/power/reset/zx-reboot.c b/drivers/power/reset/zx-reboot.c
index a5b0096..b0b1eb3 100644
--- 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;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] power: reset: zx-reboot: Unmap region obtained by of_iomap
2016-09-14 11:05 [PATCH] power: reset: zx-reboot: Unmap region obtained by of_iomap arvind.yadav.cs
@ 2016-09-19 19:26 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2016-09-19 19:26 UTC (permalink / raw)
To: arvind.yadav.cs; +Cc: dbaryshkov, dwmw2, linux-pm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 287 bytes --]
Hi,
On Wed, Sep 14, 2016 at 04:35:31PM +0530, arvind.yadav.cs@gmail.com wrote:
> From: Arvind Yadav <arvind.yadav.cs@gmail.com>
>
> Free memory mapping, if probe is not successful.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Thanks, queued.
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-19 19:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-14 11:05 [PATCH] power: reset: zx-reboot: Unmap region obtained by of_iomap arvind.yadav.cs
2016-09-19 19:26 ` Sebastian Reichel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.