Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5988896ybv; Wed, 12 Feb 2020 04:05:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyX7mdYaEveBFX0aOcLm+bhh7TjqfwkXYHtc2K7ytpxg4kV2GCOlklgwgJ+LH1sUMt8Y98T X-Received: by 2002:a9d:7086:: with SMTP id l6mr8681448otj.294.1581509124138; Wed, 12 Feb 2020 04:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581509124; cv=none; d=google.com; s=arc-20160816; b=Qt96veG0yt3Am3RggTo026xZ0nLvRDfE6z2ss02XCj62GuiS3YcbvjWIdjnazed8lx jwE3+FJyZ9kXO9rZSbMeci7VL61D1dnwB2XOkADY9oGG1gw4L2PLW/9+wc2JHx3gDjv+ 9Hl+LjUVBbQ28clzKubsJpk6uJoQLOf9xyFw5UbFiVsJ62AbUeQPERdNLP3bt/U58lRa gaVdQPAQN3gLICFnJqn0vDWKnsKKpMw06CDGC+hmzyJAWiUC/ji5zRl/HQ22TJM0HtU4 1QDWjBxtdLvzw8oPpms+k1LjiVMQ6YbxDunRTCgiMRoOukemsYDcYqDVfGrobPbt8ENz ReSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=wwL4Hw4/ex0wRjTW14XPFP2zBVbeJdq8BWV6/iktCpE=; b=gXEqyvGNHCGWM5aZioC7CPx6t5reTEOWAWL0QOu/9KVJjFDv1BN5QcLhCd+oAFTZiI oGp8bsLFllvBzAQraTBDiUy8a8ulMFDhm+9pfUGrNYfBFEluXAh7FB+7/+pjXko8bt6/ PHticgmZxb9Lss3tlBwcw1895M23N2a0Vyqnj7UJg6U2i26mzUyCQoYIAl0rltO3z7ja vcOptywHsGbJet0jRIp41WC+RU9pGPlSmqXPqpQHxOGD8v3Mr4oINvoXqiZH3M4JXQuK /fxtHKXlqDkGDncw1OBN/Qy8LweyXKR8mWsRfpKl+Q3xzppdybXEUSb8gqgUwgP+Ev+k Fedg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si113142otp.108.2020.02.12.04.05.11; Wed, 12 Feb 2020 04:05:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728025AbgBLMDT (ORCPT + 99 others); Wed, 12 Feb 2020 07:03:19 -0500 Received: from inva020.nxp.com ([92.121.34.13]:48780 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727600AbgBLMDS (ORCPT ); Wed, 12 Feb 2020 07:03:18 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 42B6F1A469D; Wed, 12 Feb 2020 13:03:17 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C12861A09A2; Wed, 12 Feb 2020 13:03:08 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 844DE402A9; Wed, 12 Feb 2020 20:02:58 +0800 (SGT) From: Anson Huang To: mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, allison@lohutok.net, gregkh@linuxfoundation.org, tglx@linutronix.de, abel.vesa@nxp.com, leonard.crestez@nxp.com, peng.fan@nxp.com, ping.bai@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 1/5] clk: imx6sl: Add missing of_node_put() Date: Wed, 12 Feb 2020 19:57:33 +0800 Message-Id: <1581508657-12107-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx6sl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index 4bd44d8..0f647d1 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -208,6 +208,7 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) np = of_find_compatible_node(NULL, NULL, "fsl,imx6sl-anatop"); base = of_iomap(np, 0); WARN_ON(!base); + of_node_put(np); anatop_base = base; hws[IMX6SL_PLL1_BYPASS_SRC] = imx_clk_hw_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels)); -- 2.7.4