Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5988884ybv; Wed, 12 Feb 2020 04:05:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzW+udJ/jV5m/gQ5q4TO88KrHn22OIrVnB0+zMtuKslGb1xSQo1NBVfok0JG8+4EfiilhWC X-Received: by 2002:a9d:806:: with SMTP id 6mr8617927oty.90.1581509123691; Wed, 12 Feb 2020 04:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581509123; cv=none; d=google.com; s=arc-20160816; b=Pngxu338cpYmrnZYQ8JGI1Ye04y5eiyXM8ru8/EqXtczW8BcbCJAQANRwrig+9Z+6C 9zcuF2yDcfs8jamdxtDT9oLdWYmXWzs7TrGPq+1dkuCAvPBBX7fXJTCVe8Qy98+HPu5J 5eXeWVXVaj+ROZTYGb0dozR5RGdZG4ayTnd9fq22w/P9+STZf84xWNbdnqAsyfjR/Hjd EHDC5vigYzKxeouCKuWcGRDlrpnsRiQg0jfly5JM2ZI+YqDygigIYEBJxhx2nuzt6cGt KsytNFSr4kv/aMRJdWYZ24jSUCpIQZO2HrEKHl9gl7OoeXukrkEtxzqPYrcfG/9CVFTm dMvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=sqMMxR6rcnt6Tv+L2GGbm7gWJ4NXULAQgUB78fZMlPk=; b=kNirLKwIvaVfv1JrJ6xAsLYmyE9RVxTySNKx/zNYdRsjTf+YTK+lg4zSzUy+DfGe3l dzIrg/1KeuYcvYx/Jd+o4xLQupXE2juSuQAQy/HUZGl2F4ba8cqcq1n4a+HcfKDo3vXW IfQyHfiY47jjhhS1G5+gzNWRddPonOtQq5R96WTVDOTBPZ7a4/aMXKPxucd5aHsYprCR 8Zr3uHZ917Alj0n/iEivipStYX8IBOGJInLlr4egM1yEh4ucRmDL7n4R001Od9V9Imz0 cXjqh+KfsAwS6p5Ef0TdBjFdXO+JcbqDMuYeUgaaJrdDfHjf/6mfqgORZKaEIeW1kl+O o4Hg== 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 z20si2858540oib.26.2020.02.12.04.05.11; Wed, 12 Feb 2020 04:05:23 -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 S1728409AbgBLMDW (ORCPT + 99 others); Wed, 12 Feb 2020 07:03:22 -0500 Received: from inva020.nxp.com ([92.121.34.13]:48838 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728287AbgBLMDV (ORCPT ); Wed, 12 Feb 2020 07:03:21 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id F23FD1A469A; Wed, 12 Feb 2020 13:03:19 +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 7E6CB1A04D1; Wed, 12 Feb 2020 13:03:11 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 455544029B; Wed, 12 Feb 2020 20:03:01 +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 3/5] clk: imx8mm: Add missing of_node_put() Date: Wed, 12 Feb 2020 19:57:35 +0800 Message-Id: <1581508657-12107-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581508657-12107-1-git-send-email-Anson.Huang@nxp.com> References: <1581508657-12107-1-git-send-email-Anson.Huang@nxp.com> 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-imx8mm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 3d19e87..e09c13a 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -322,6 +322,7 @@ static int imx8mm_clocks_probe(struct platform_device *pdev) np = of_find_compatible_node(NULL, NULL, "fsl,imx8mm-anatop"); base = of_iomap(np, 0); + of_node_put(np); if (WARN_ON(!base)) return -ENOMEM; -- 2.7.4