From: Peter Chen <peter.chen@nxp.com>
To: <minghuan.Lian@freescale.com>, <mingkai.hu@freescale.com>,
<tie-fei.zang@freescale.com>
Cc: <bhelgaas@google.com>, <linux-pci@vger.kernel.org>,
<linuxppc-dev@lists.ozlabs.org>, Peter Chen <peter.chen@nxp.com>
Subject: [PATCH 1/1] pci: host: pci-layerscape: add missing of_node_put after calling of_parse_phandle
Date: Fri, 12 Aug 2016 09:34:41 +0800 [thread overview]
Message-ID: <1470965681-30496-1-git-send-email-peter.chen@nxp.com> (raw)
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Cc: Minghuan Lian <minghuan.Lian@freescale.com>
Cc: Mingkai Hu <mingkai.hu@freescale.com>
Cc: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
drivers/pci/host/pci-layerscape.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c
index 114ba81..573b996 100644
--- a/drivers/pci/host/pci-layerscape.c
+++ b/drivers/pci/host/pci-layerscape.c
@@ -173,6 +173,8 @@ static int ls_pcie_msi_host_init(struct pcie_port *pp,
return -EINVAL;
}
+ of_node_put(msi_node);
+
return 0;
}
--
1.9.1
next reply other threads:[~2016-08-12 4:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-12 1:34 Peter Chen [this message]
2016-08-23 21:19 ` [PATCH 1/1] pci: host: pci-layerscape: add missing of_node_put after calling of_parse_phandle Bjorn Helgaas
2016-08-25 9:02 ` Peter Chen
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=1470965681-30496-1-git-send-email-peter.chen@nxp.com \
--to=peter.chen@nxp.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=minghuan.Lian@freescale.com \
--cc=mingkai.hu@freescale.com \
--cc=tie-fei.zang@freescale.com \
/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).