From patchwork Tue Sep 20 10:54:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9341471 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6B80A6077A for ; Tue, 20 Sep 2016 10:55:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B37E29F07 for ; Tue, 20 Sep 2016 10:55:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F2AF29F0D; Tue, 20 Sep 2016 10:55:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BF1A29F07 for ; Tue, 20 Sep 2016 10:55:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752292AbcITKzE (ORCPT ); Tue, 20 Sep 2016 06:55:04 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36301 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752262AbcITKzD (ORCPT ); Tue, 20 Sep 2016 06:55:03 -0400 Received: by mail-pf0-f195.google.com with SMTP id n24so824066pfb.3; Tue, 20 Sep 2016 03:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Dk88BiBAAFeRJG4oYzCec4DwMcsJo3V5o9jdFwt/cRA=; b=LCZvzTpIxRg971XPrR/y+7P0zxfipkUIn7NN9K8mi6xkR0g3CD+EhxvQYSlo8xsCQ/ gUhc8OIsEhrhK/I355sZUZ0EYww9UIRy0h37BRPv3qZV7Qw/YHxt2EB8kztynyxLLb3M WHn4tQoXitiX4EhTz85ydkXAds9XooVJBc3UmfEsCZWhWv1jksbR7j70tvYtkAepaGG8 2wNB0Q4giML5SK1B8jHJjbsZtXNK14Kffq5jdW9/U/b/yc9FbRy24h5vjjmxA7mPj26G EqSm0sXEfbCnykOGiApqp7a2OMjd8J9da1LKk8ssgbYjpXmpMfXslo7JV38ZoT/7b8gP uxng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Dk88BiBAAFeRJG4oYzCec4DwMcsJo3V5o9jdFwt/cRA=; b=Fu8d3+vl5jL64nybr2W0MXP1bpCfuLiLskyjDgTmcodGxycltlUqn8yMHfl2CJjEod mnl14cDWKtENYZP8cHK3Z+IR6gY9x1TZ/9+sDScXoD+WiVuMrvou8hugecBCS3wddqHy JyKYZg2/8Iuiv/HxOs1Fomy/E+9bP8CY+mCMEzEzUbikFNh1MmOw3Byf+5vbQZ+Myh/u DDat5SW8RA4UjYZ9lrPRpiS0kz0aGApUmg5BRJGJu83Jtig/N5nyAUVredJr1v7JdC5v FUCFM3TduqY090FmiOpVDoyNje98OcKBpidT1bszOr3rCyKHh5A5aaDBW9AEAP8cXYu+ L0ZQ== X-Gm-Message-State: AE9vXwPWb/UuU8gVSDFJTAVRrj7/uPJ9QkwsX8wf23IyLfb7Ylt+Eo4IvqCyxpLxVeSC1Q== X-Received: by 10.98.97.7 with SMTP id v7mr54858406pfb.49.1474368903213; Tue, 20 Sep 2016 03:55:03 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.symbol.com ([140.101.159.242]) by smtp.googlemail.com with ESMTPSA id 83sm30603057pfv.17.2016.09.20.03.54.59 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Sep 2016 03:55:02 -0700 (PDT) From: Arvind Yadav X-Google-Original-From: Arvind Yadav To: mturquette@baylibre.com, sboyd@codeaurora.org, vz@mleia.com, slemieux.tyco@gmail.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arvind Yadav Subject: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap Date: Tue, 20 Sep 2016 16:24:06 +0530 Message-Id: <1474368846-15916-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Arvind Yadav Free memory mapping, if lpc32xx_clk_init is not successful. Signed-off-by: Arvind Yadav Acked-by: Vladimir Zapolskiy Acked-by: Sylvain Lemieux --- 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; }