power: reset: zx-reboot: Unmap region obtained by of_iomap
PATCH 1/1 power: reset: zx-reboot: Unmap region obtained by of_iomap
From: Arvind Yadav <[email protected]>
Free memory mapping, if probe is not successful.
Signed-off-by Arvind Yadav <[email protected]>
--- drivers/power/reset/zx-reboot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/power/reset/zx-reboot.c +4 -1
@@ -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; }
Signature · 1 line
1.7.9.5
Sebastian Reichel
maintainerHi,
Quoted 5 lines · On Wed, Sep 14, 2016 at 04:35:31PM +0530, [email protected] wrote:
From: Arvind Yadav <[email protected]>
Free memory mapping, if probe is not successful.
Signed-off-by Arvind Yadav <[email protected]>
Thanks, queued.
-- Sebastian