Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751613AbdF1Fyg (ORCPT ); Wed, 28 Jun 2017 01:54:36 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34077 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbdF1Fy3 (ORCPT ); Wed, 28 Jun 2017 01:54:29 -0400 From: Arvind Yadav To: daniel.lezcano@linaro.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org Subject: [PATCH] clocksource: timer-ti-32k: Unmap region obtained by of_iomap. Date: Wed, 28 Jun 2017 11:23:39 +0530 Message-Id: <87df3df07d2c0e7faef160bacb5e8bde069bc212.1498629201.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 653 Lines: 21 In case of error at init time, rollback iomapping. Signed-off-by: Arvind Yadav --- drivers/clocksource/timer-ti-32k.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/timer-ti-32k.c b/drivers/clocksource/timer-ti-32k.c index 6240677..658d759 100644 --- a/drivers/clocksource/timer-ti-32k.c +++ b/drivers/clocksource/timer-ti-32k.c @@ -116,6 +116,7 @@ static int __init ti_32k_timer_init(struct device_node *np) ret = clocksource_register_hz(&ti_32k_timer.cs, 32768); if (ret) { pr_err("32k_counter: can't register clocksource\n"); + iounmap(ti_32k_timer.base); return ret; } -- 1.9.1