PCI: Drop references acquired by of_parse_phandle()
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 4 Aug 2015 19:54:04 +0000 (14:54 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Aug 2015 17:02:50 +0000 (12:02 -0500)
commit3a10766d0624c72b978790dba864cf7d6160f89f
tree0ab210a8d02dc3a8bac23b4c322a43cf57e81c43
parent2291ec09025f85c11fbd0e9877c4306a8aa6e7e9
PCI: Drop references acquired by of_parse_phandle()

of_parse_phandle() returns a device_node pointer with the refcount
incremented.  We should dispose of this reference when we're finished.

Drop the reference acquired by of_parse_phandle().

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/host/pci-mvebu.c
drivers/pci/host/pci-xgene.c