sbus: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:43:27 +0000 (16:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jul 2017 19:37:10 +0000 (12:37 -0700)
Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/display7seg.c
drivers/sbus/char/flash.c
drivers/sbus/char/uctrl.c

index 04efed171c88981e23e23bf6ac8438c42ebae69a..f32765d3cbd89dd3cd50186f803b74a44ea0973f 100644 (file)
@@ -212,8 +212,8 @@ static int d7s_probe(struct platform_device *op)
 
        writeb(regs,  p->regs);
 
-       printk(KERN_INFO PFX "7-Segment Display%s at [%s:0x%llx] %s\n",
-              op->dev.of_node->full_name,
+       printk(KERN_INFO PFX "7-Segment Display%pOF at [%s:0x%llx] %s\n",
+              op->dev.of_node,
               (regs & D7S_FLIP) ? " (FLIPPED)" : "",
               op->resource[0].start,
               sol_compat ? "in sol_compat mode" : "");
index 216f923161d1007866130c22872ef22f604197d9..a610b8d3d11f0dfff4def05edf3c2342780dc0b8 100644 (file)
@@ -181,8 +181,8 @@ static int flash_probe(struct platform_device *op)
        }
        flash.busy = 0;
 
-       printk(KERN_INFO "%s: OBP Flash, RD %lx[%lx] WR %lx[%lx]\n",
-              op->dev.of_node->full_name,
+       printk(KERN_INFO "%pOF: OBP Flash, RD %lx[%lx] WR %lx[%lx]\n",
+              op->dev.of_node,
               flash.read_base, flash.read_size,
               flash.write_base, flash.write_size);
 
index 57696fc0b482687421c3787a0abed6102845d603..0a5013350acdb66f3acf51b2cb24672994d4ccb5 100644 (file)
@@ -379,8 +379,8 @@ static int uctrl_probe(struct platform_device *op)
        }
 
        sbus_writel(UCTRL_INTR_RXNE_REQ|UCTRL_INTR_RXNE_MSK, &p->regs->uctrl_intr);
-       printk(KERN_INFO "%s: uctrl regs[0x%p] (irq %d)\n",
-              op->dev.of_node->full_name, p->regs, p->irq);
+       printk(KERN_INFO "%pOF: uctrl regs[0x%p] (irq %d)\n",
+              op->dev.of_node, p->regs, p->irq);
        uctrl_get_event_status(p);
        uctrl_get_external_status(p);