diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2016-09-20 16:24:06 +0530 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-09-21 13:46:21 -0700 |
commit | 41d88559c31bfd2a7e5dd105362f0e39f810401c (patch) | |
tree | 13460dd9d9b0cc417a7f3d1d7edf3f9b5f50beb1 /drivers/clk/nxp | |
parent | af9083627b4764272a341902e37af17188bc17f0 (diff) | |
download | op-kernel-dev-41d88559c31bfd2a7e5dd105362f0e39f810401c.zip op-kernel-dev-41d88559c31bfd2a7e5dd105362f0e39f810401c.tar.gz |
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>
Diffstat (limited to 'drivers/clk/nxp')
-rw-r--r-- | drivers/clk/nxp/clk-lpc32xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c index 90d740a..34c9735 100644 --- a/drivers/clk/nxp/clk-lpc32xx.c +++ b/drivers/clk/nxp/clk-lpc32xx.c @@ -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; } |