summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-09-23 18:17:48 +0100
committerBjorn Helgaas <bhelgaas@google.com>2015-10-08 11:23:05 -0500
commit2cdf4ed184d4a340b91e362892eb67effe17ef75 (patch)
tree553fb42cf49ba843f42658eaf53b7f9df0e7c56e /drivers/pci
parent2aee2ed2474bcd66a628f18412826165cdca1b4c (diff)
downloadlinux-2cdf4ed184d4a340b91e362892eb67effe17ef75.tar.gz
linux-2cdf4ed184d4a340b91e362892eb67effe17ef75.tar.bz2
linux-2cdf4ed184d4a340b91e362892eb67effe17ef75.zip
PCI: mvebu: Report full node name when reporting a DT error
If we have a missing required property, report the full node name rather than a vague "PCIe DT node" statement. This allows the exact node in error to be identified immediately. Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (Armada XP GP) Tested-by: Andrew Lunn <andrew@lunn.ch> (Kirkwood DIR665) Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pci-mvebu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index d331d2664580..8c715444b722 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -987,7 +987,8 @@ static int mvebu_pcie_probe(struct platform_device *pdev)
if (of_property_read_u32(child, "marvell,pcie-port",
&port->port)) {
dev_warn(&pdev->dev,
- "ignoring PCIe DT node, missing pcie-port property\n");
+ "ignoring %s, missing pcie-port property\n",
+ of_node_full_name(child));
continue;
}