Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5988577ybv; Wed, 12 Feb 2020 04:05:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxJ0Vy7/scgrnRsyqrmR7gGlMQ7uN3b2AGbZfV2yvVVUL9JUTQ2cO/5xQ9Z2YWK5ZSHhejo X-Received: by 2002:a9d:6415:: with SMTP id h21mr9314322otl.152.1581509107278; Wed, 12 Feb 2020 04:05:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581509107; cv=none; d=google.com; s=arc-20160816; b=d4VhiD8LNgi4mYKbZhvCvVQyZ+kye+eo14zLHPK8npyC0W98jsBmprJtFvGMv3FSBi oRzGzFG9+acJP34P9m71mzDSLDFY4isFfnETzJxk1clOAZcub5V/JK0LGS6xU70/m0KA k0BNpEpjGoG89kj1qrnQH3/APUnkCwLK2x5BIKbMrvZyXt2x3FVmkejp0XM55/T+mvx+ 9AczNwtHnpJM/uP8wpYnVdXR1oF+Vnp578PH4PBOXUqB1qgVSEqSdVsqzuURibRho/Zj aCqBghK8NTngAoetUcyJZSnBBsbO+rBgZ6dOtzanAoIkI6hdbE+ZFmA95eKS/VAJcGl9 fLRg== 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=a6ozKKJio9EHPJ82FDmoFkM7G22CDnDidGDknSyTfek=; b=np1WwFW2OHobdQjmPh/G57id8dXc2CLYDEj0Vm9NiC49rYMzjNqaSD8/MvBibeVxgs 0zNnWJ2YUJgPAkhgMR0spextS989b5wafNeaqa16YkDKfnWQjpAT4tMEEmfia1YBn6wf 36c02Iz288xyhdrB2X+5CsPrjHgSd+GWBsc+bM4SFQb7r6NobKzJjsMLUhx9oF5UTNpv N5EroZnqgG4P5HZ1D1R/7/U8vGmM4w2qh1IHzvXSdffd4IbeHdkXRx4dEW9on4vTyeMw AwXeu7hxuKrbgSdfchpIfo4r5mADZpNvAVne3AZ5ptUeW6iLdcxyohzb04eN46s6E/zJ mzeQ== 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 e8si3195355oie.96.2020.02.12.04.04.54; Wed, 12 Feb 2020 04:05:07 -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 S1728483AbgBLMD0 (ORCPT + 99 others); Wed, 12 Feb 2020 07:03:26 -0500 Received: from inva021.nxp.com ([92.121.34.21]:42724 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728457AbgBLMDY (ORCPT ); Wed, 12 Feb 2020 07:03:24 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0CDE42041D1; Wed, 12 Feb 2020 13:03:23 +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 8ABE32014BE; Wed, 12 Feb 2020 13:03:14 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 086C1402F3; Wed, 12 Feb 2020 20:03:03 +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 5/5] clk: imx8mp: Add missing of_node_put() Date: Wed, 12 Feb 2020 19:57:37 +0800 Message-Id: <1581508657-12107-5-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-imx8mp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index f6c120c..b6462c0 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -434,6 +434,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) np = of_find_compatible_node(NULL, NULL, "fsl,imx8mp-anatop"); anatop_base = of_iomap(np, 0); + of_node_put(np); if (WARN_ON(!anatop_base)) return -ENOMEM; -- 2.7.4