Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751557AbdF1KKO (ORCPT ); Wed, 28 Jun 2017 06:10:14 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:32821 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbdF1KKJ (ORCPT ); Wed, 28 Jun 2017 06:10:09 -0400 From: Arvind Yadav To: daniel.lezcano@linaro.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org Subject: [PATCH] clocksource: timer-sp804: Unmap region obtained by of_iomap. Date: Wed, 28 Jun 2017 15:39:20 +0530 Message-Id: <050cbe573e12fb26da35e3727181c3517dc24507.1498644430.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: 675 Lines: 23 In case of error at init time, rollback iomapping. Signed-off-by: Arvind Yadav --- drivers/clocksource/timer-sp804.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c index 2d575a8c..5830bc9 100644 --- a/drivers/clocksource/timer-sp804.c +++ b/drivers/clocksource/timer-sp804.c @@ -306,7 +306,8 @@ 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\n"); - return PTR_ERR(clk); + ret = PTR_ERR(clk); + goto err; } /* Ensure timer is disabled */ -- 1.9.1