Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1483173 > unrolled thread
| Started by | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| First post | 2016-09-14 13:00 +0200 |
| Last post | 2016-09-19 21:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH] power: reset: xgene-reboot: Unmap region obtained by of_iomap Arvind Yadav <arvind.yadav.cs@gmail.com> - 2016-09-14 13:00 +0200
Re: [PATCH] power: reset: xgene-reboot: Unmap region obtained by of_iomap Sebastian Reichel <sre@kernel.org> - 2016-09-19 21:30 +0200
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| Date | 2016-09-14 13:00 +0200 |
| Subject | [PATCH] power: reset: xgene-reboot: Unmap region obtained by of_iomap |
| Message-ID | <shg53-8gk-1@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2016-09-19 21:30 +0200 |
| Subject | Re: [PATCH] power: reset: xgene-reboot: Unmap region obtained by of_iomap |
| Message-ID | <sjcql-149-15@gated-at.bofh.it> |
| In reply to | #1483173 |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web