MIPS: pci-rt3883: more accurate DT error messages
authorIlya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Wed, 14 Apr 2021 03:12:36 +0000 (20:12 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 16 Apr 2021 07:15:40 +0000 (09:15 +0200)
Existing strings do not make sense: one is always NULL and the other
refers to the wrong parent node.

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/pci/pci-rt3883.c

index e422f78..aebd496 100644 (file)
@@ -431,8 +431,7 @@ static int rt3883_pci_probe(struct platform_device *pdev)
 
        if (!rpc->intc_of_node) {
                dev_err(dev, "%pOF has no %s child node",
-                       rpc->intc_of_node,
-                       "interrupt controller");
+                       np, "interrupt controller");
                return -EINVAL;
        }
 
@@ -446,8 +445,7 @@ static int rt3883_pci_probe(struct platform_device *pdev)
 
        if (!rpc->pci_controller.of_node) {
                dev_err(dev, "%pOF has no %s child node",
-                       rpc->intc_of_node,
-                       "PCI host bridge");
+                       np, "PCI host bridge");
                err = -EINVAL;
                goto err_put_intc_node;
        }