[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1474471128-7421-1-git-send-email-arvind.yadav.cs@gmail.com>
Date: Wed, 21 Sep 2016 20:48:48 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: daniel.lezcano@...aro.org, tglx@...utronix.de
Cc: arnd@...db.de, linux-kernel@...r.kernel.org
Subject: [PATCH] clocksource: timer-sp804: Unmap region obtained by of_iomap
Free memory mapping, if integrator_cp_of_init is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
drivers/clocksource/timer-sp804.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c
index d078633..419995d 100644
--- a/drivers/clocksource/timer-sp804.c
+++ b/drivers/clocksource/timer-sp804.c
@@ -306,6 +306,7 @@ static int __init integrator_cp_of_init(struct device_node *np)
clk = of_clk_get(np, 0);
if (IS_ERR(clk)) {
pr_err("Failed to get clock");
+ iounmap(base);
return PTR_ERR(clk);
}
--
2.7.4
Powered by blists - more mailing lists