sparc: Convert to using %pOF instead of full_name
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. Cc: "David S. Miller" <davem@davemloft.net> Cc: sparclinux@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f3180e1828
commit
a412c85aa8
@@ -445,8 +445,8 @@ static int rtc_probe(struct platform_device *op)
|
||||
{
|
||||
struct resource *r;
|
||||
|
||||
printk(KERN_INFO "%s: RTC regs at 0x%llx\n",
|
||||
op->dev.of_node->full_name, op->resource[0].start);
|
||||
printk(KERN_INFO "%pOF: RTC regs at 0x%llx\n",
|
||||
op->dev.of_node, op->resource[0].start);
|
||||
|
||||
/* The CMOS RTC driver only accepts IORESOURCE_IO, so cons
|
||||
* up a fake resource so that the probe works for all cases.
|
||||
@@ -501,8 +501,8 @@ static struct platform_device rtc_bq4802_device = {
|
||||
static int bq4802_probe(struct platform_device *op)
|
||||
{
|
||||
|
||||
printk(KERN_INFO "%s: BQ4802 regs at 0x%llx\n",
|
||||
op->dev.of_node->full_name, op->resource[0].start);
|
||||
printk(KERN_INFO "%pOF: BQ4802 regs at 0x%llx\n",
|
||||
op->dev.of_node, op->resource[0].start);
|
||||
|
||||
rtc_bq4802_device.resource = &op->resource[0];
|
||||
return platform_device_register(&rtc_bq4802_device);
|
||||
@@ -565,8 +565,8 @@ static int mostek_probe(struct platform_device *op)
|
||||
strcmp(dp->parent->parent->name, "central") != 0)
|
||||
return -ENODEV;
|
||||
|
||||
printk(KERN_INFO "%s: Mostek regs at 0x%llx\n",
|
||||
dp->full_name, op->resource[0].start);
|
||||
printk(KERN_INFO "%pOF: Mostek regs at 0x%llx\n",
|
||||
dp, op->resource[0].start);
|
||||
|
||||
m48t59_rtc.resource = &op->resource[0];
|
||||
return platform_device_register(&m48t59_rtc);
|
||||
|
Reference in New Issue
Block a user