diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2016-09-20 12:54:06 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-09-21 22:46:21 +0200 |
commit | 41d88559c31bfd2a7e5dd105362f0e39f810401c (patch) | |
tree | 13460dd9d9b0cc417a7f3d1d7edf3f9b5f50beb1 /drivers/clk/nxp | |
parent | clk: mediatek: clk-mt8173: Unmap region obtained by of_iomap (diff) | |
download | linux-41d88559c31bfd2a7e5dd105362f0e39f810401c.tar.xz linux-41d88559c31bfd2a7e5dd105362f0e39f810401c.zip |
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 90d740a2fc0d..34c97353cdeb 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; } |