linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] pci: host: pci-layerscape: add missing of_node_put after calling of_parse_phandle
@ 2016-08-12  1:34 Peter Chen
  2016-08-23 21:19 ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Chen @ 2016-08-12  1:34 UTC (permalink / raw)
  To: minghuan.Lian, mingkai.hu, tie-fei.zang
  Cc: bhelgaas, linux-pci, linuxppc-dev, Peter Chen

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-25  9:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-12  1:34 [PATCH 1/1] pci: host: pci-layerscape: add missing of_node_put after calling of_parse_phandle Peter Chen
2016-08-23 21:19 ` Bjorn Helgaas
2016-08-25  9:02   ` Peter Chen

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).