]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI: mvebu: Report full node name when reporting a DT error
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Sep 2015 17:17:48 +0000 (18:17 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 8 Oct 2015 16:23:05 +0000 (11:23 -0500)
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>
drivers/pci/host/pci-mvebu.c

index d331d2664580b45f1f28e96b4a0623737681c11b..8c715444b7223d20a7d36072f6cdb7c77bcc4590 100644 (file)
@@ -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;
                }