linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anson Huang <Anson.Huang@nxp.com>
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	[thread overview]
Message-ID: <1581508657-12107-4-git-send-email-Anson.Huang@nxp.com> (raw)
In-Reply-To: <1581508657-12107-1-git-send-email-Anson.Huang@nxp.com>

After finishing using device node got from of_find_compatible_node(),
of_node_put() needs to be called.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 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


  parent reply	other threads:[~2020-02-12 12:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-12 11:57 [PATCH 1/5] clk: imx6sl: Add missing of_node_put() Anson Huang
2020-02-12 11:57 ` [PATCH 2/5] clk: imx8mq: " Anson Huang
2020-02-12 20:56   ` Stephen Boyd
2020-02-12 11:57 ` [PATCH 3/5] clk: imx8mm: " Anson Huang
2020-02-12 20:56   ` Stephen Boyd
2020-02-12 11:57 ` Anson Huang [this message]
2020-02-12 20:57   ` [PATCH 4/5] clk: imx8mn: " Stephen Boyd
2020-02-12 11:57 ` [PATCH 5/5] clk: imx8mp: " Anson Huang
2020-02-12 20:57   ` Stephen Boyd
2020-02-12 20:56 ` [PATCH 1/5] clk: imx6sl: " Stephen Boyd
2020-02-17  6:38 ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1581508657-12107-4-git-send-email-Anson.Huang@nxp.com \
    --to=anson.huang@nxp.com \
    --cc=Linux-imx@nxp.com \
    --cc=abel.vesa@nxp.com \
    --cc=allison@lohutok.net \
    --cc=festevam@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@pengutronix.de \
    --cc=leonard.crestez@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=peng.fan@nxp.com \
    --cc=ping.bai@nxp.com \
    --cc=s.hauer@pengutronix.de \
    --cc=sboyd@kernel.org \
    --cc=shawnguo@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).