Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5987221ybv; Wed, 12 Feb 2020 04:03:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyzU728czVCIRxzEOtp1UubnDiSpI4JrDafzSXb7mhtO9rkl3YrfVuwChjs+QwMJpXLoz4u X-Received: by 2002:a9d:12a2:: with SMTP id g31mr2067708otg.283.1581509028768; Wed, 12 Feb 2020 04:03:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581509028; cv=none; d=google.com; s=arc-20160816; b=LNJiapM2ai2lZLaEnSOS8a8AKrkiVuPKbLUeeh5k1bKUR82W1Zi43QhM5hX4QH2YSr vP82jh/UW41MKuweiagsC9FrmwuIYhpTGMAIFXt2257Jkn75vdPgOdAERlY5fNJ7XUd9 9Ek8fIVBVKMHWtuL9CZfOvfTTwoLtrfmtzYFeRTFESqMzesb2yWzge5JY3lLRf3MgaMr EkMFavbeB8P9E8ZKgOtb5tOPCm0gICOs2fhaG58/1cKDEKQ++gcODuzTnnD5pvayI5PW gwOBeTAp44MyXaNBsXPDdnMkoBkzf3o88BBdV26Rf4L9wwGJk7uXAAT8C6zMD8bwgeau RapQ== 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=3gBzECstM/YRXa0C/LXLfcWFtZ/+07Pidj3mnnfVUoc=; b=dy1A7H/EsVfqV3q3Kvdwo2q/c/trP/6W8O04gvSM03IPPUqNNBQDcYcdaMBN7OR3Sz MTt+71rq3+0URnQLckIfPiNXhQeDdoXXGNjSrzorjEecdCnrTSg9f558Q15GHjpbpgKI 93nrdL6pftgT9e2rmzMSQgGXv/PgrehIdPv+lrbvFglOBpXCX0Z1JtHKZeyVTzG2fr7O 31Ba8dQwUAAJuw9flMjzNN7J9IlGjcOreXISRLsGfFAwUVqkRhfSqcmgFDTX1gjF3mBU SAfv9VeOsD94WxmZHbb9fTG+NnLj1KRAaigb5/AcgpOzRIL5Hn4e8PufnpPsGoSDsYoG DDOg== 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 g26si105082otk.324.2020.02.12.04.03.35; Wed, 12 Feb 2020 04:03:48 -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 S1728060AbgBLMDU (ORCPT + 99 others); Wed, 12 Feb 2020 07:03:20 -0500 Received: from inva021.nxp.com ([92.121.34.21]:42624 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727762AbgBLMDT (ORCPT ); Wed, 12 Feb 2020 07:03:19 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9B7BC2041C6; Wed, 12 Feb 2020 13:03:18 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 260B62041BD; Wed, 12 Feb 2020 13:03:10 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E0660402B7; Wed, 12 Feb 2020 20:02:59 +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 2/5] clk: imx8mq: Add missing of_node_put() Date: Wed, 12 Feb 2020 19:57:34 +0800 Message-Id: <1581508657-12107-2-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-imx8mq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 8c82e7a..831ce71 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -305,6 +305,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-anatop"); base = of_iomap(np, 0); + of_node_put(np); if (WARN_ON(!base)) return -ENOMEM; -- 2.7.4