[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1474368846-15916-1-git-send-email-arvind.yadav.cs@gmail.com>
Date: Tue, 20 Sep 2016 16:24:06 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: mturquette@...libre.com, sboyd@...eaurora.org, vz@...ia.com,
slemieux.tyco@...il.com
Cc: linux-clk@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Arvind Yadav <arvind.yadav.cs@...il.com>
Subject: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap
From: Arvind Yadav <arvind.yadav.cs@...il.com>
Free memory mapping, if lpc32xx_clk_init is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
drivers/clk/nxp/clk-lpc32xx.c | 1 +
1 file changed, 1 insertion(+)
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;
}
--
1.7.9.5
Powered by blists - more mailing lists