Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5987689ybv; Wed, 12 Feb 2020 04:04:16 -0800 (PST) X-Google-Smtp-Source: APXvYqy6azAd2wGx7hqvEbgusHgbo4mSiIoYrT+SoD/6mkU8sBDE6PTo2MAly3f96wMWRqvCcZkd X-Received: by 2002:a05:6830:1294:: with SMTP id z20mr8757838otp.60.1581509055132; Wed, 12 Feb 2020 04:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581509055; cv=none; d=google.com; s=arc-20160816; b=RVTzPeyv98MwxNc8JQle+Q3j2wmoUMX+pqi5Xuk4kxa9C7aXN2xY77zUNCQ2Zv0J4v SVDdBx0K68m+ham4BvTYPLqMqlE6sbWxt5WJZRRgZaW4ox/R/z2oTmvdwBler70LC/nx ekOX1MPfbtR8Qxe8kwig3G1e3KX0X+K4dMh3KN7ZnDMrCBHTLU8axVQED87+lfKXT3+4 9SkdKyWRN/rbCPfoZrQ1M05NHqoQfmOZ93XVnYRWLBjIIsuEVp0W03/pxhzUZGV9FBM8 HvmW4iIYQmBzEIdmhncbmlpQ8P7XfTfqUUTDEUsNsiuczBVDLgoYyEkKY4k3yDvsPxLm I8Ww== 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=X7DaiOz/STEEQcc5zR/2p/dcZrU37Q/YV+Uk7299R0Q=; b=kxmJ6UWRtLNtaOZlOR+PbrOatbRqcEIz3xn1Hy4w3JgLTp6sHewlzucojbuL4pjUV2 bilbSNtYfgWw5DXMApx3TQhUnweACTY3WgxarNzZzp9pz9LnNFgVtqDStFX7IDoexhQO j1nlyQGv3mDTjF7Z+rwUtn+q5QZqTAPypUB5igfsADs+t9LgBGNG3AF6PNFrTkMm2a8C 7Ec2JZlVZyuL/MEnQTRLpTADQxtQcDISVxSm/7lVdQBCnO74iRf5nxqikwU+m3fe4n3D h9ETJGRJrJrcb/dRXgudPgKYtVTkHWAkddqg/jvBW5guPOIlD7zLbh7qxBrabq47L1IQ aNwg== 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 g26si104455otk.324.2020.02.12.04.04.02; Wed, 12 Feb 2020 04:04:15 -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 S1728207AbgBLMDX (ORCPT + 99 others); Wed, 12 Feb 2020 07:03:23 -0500 Received: from inva020.nxp.com ([92.121.34.13]:48894 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbgBLMDW (ORCPT ); Wed, 12 Feb 2020 07:03:22 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5DD551A469E; Wed, 12 Feb 2020 13:03:21 +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 DD4DC1A469B; Wed, 12 Feb 2020 13:03:12 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 9EE81402EC; Wed, 12 Feb 2020 20:03:02 +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 4/5] clk: imx8mn: Add missing of_node_put() Date: Wed, 12 Feb 2020 19:57:36 +0800 Message-Id: <1581508657-12107-4-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-imx8mn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index ad20487..9130203 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -317,6 +317,7 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) np = of_find_compatible_node(NULL, NULL, "fsl,imx8mn-anatop"); base = of_iomap(np, 0); + of_node_put(np); if (WARN_ON(!base)) { ret = -ENOMEM; goto unregister_hws; -- 2.7.4