Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7531be5c authored by Arvind Yadav's avatar Arvind Yadav Committed by Sebastian Reichel
Browse files

power: reset: zx-reboot: Unmap region obtained by of_iomap



Free memory mapping, if probe is not successful.

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 896af83e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;
}