* [PATCH] power: reset: xgene-reboot: Unmap region obtained by of_iomap
@ 2016-09-14 10:55 Arvind Yadav
2016-09-19 19:24 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Arvind Yadav @ 2016-09-14 10:55 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/xgene-reboot.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/power/reset/xgene-reboot.c b/drivers/power/reset/xgene-reboot.c
index f07e93c..73c3d93 100644
--- a/drivers/power/reset/xgene-reboot.c
+++ b/drivers/power/reset/xgene-reboot.c
@@ -81,8 +81,10 @@ static int xgene_reboot_probe(struct platform_device *pdev)
ctx->restart_handler.notifier_call = xgene_restart_handler;
ctx->restart_handler.priority = 128;
err = register_restart_handler(&ctx->restart_handler);
- if (err)
+ if (err) {
+ iounmap(ctx->csr);
dev_err(dev, "cannot register restart handler (err=%d)\n", err);
+ }
return err;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] power: reset: xgene-reboot: Unmap region obtained by of_iomap
2016-09-14 10:55 [PATCH] power: reset: xgene-reboot: Unmap region obtained by of_iomap Arvind Yadav
@ 2016-09-19 19:24 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2016-09-19 19:24 UTC (permalink / raw)
To: Arvind Yadav; +Cc: dbaryshkov, dwmw2, linux-pm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 274 bytes --]
Hi,
On Wed, Sep 14, 2016 at 04:25:39PM +0530, Arvind Yadav 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:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-14 10:55 [PATCH] power: reset: xgene-reboot: Unmap region obtained by of_iomap Arvind Yadav
2016-09-19 19:24 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).