mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:50:54 +07:00
clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap
Free memory mapping, if lpc32xx_clk_init is not successful. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Acked-by: Vladimir Zapolskiy <vz@mleia.com> Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
parent
af9083627b
commit
41d88559c3
@ -1513,6 +1513,7 @@ static void __init lpc32xx_clk_init(struct device_node *np)
|
||||
if (IS_ERR(clk_regmap)) {
|
||||
pr_err("failed to regmap system control block: %ld\n",
|
||||
PTR_ERR(clk_regmap));
|
||||
iounmap(base);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user