Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ead1c2bd authored by Rob Herring's avatar Rob Herring Committed by David S. Miller
Browse files

sparc: Convert to using %pOFn instead of device_node.name



In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

This was originally applied for 4.19, but reverted. The problematic
changes to prom_{32,64}.c have been dropped.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb31f9eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,8 +115,8 @@ static int auxio_probe(struct platform_device *dev)
		auxio_devtype = AUXIO_TYPE_SBUS;
		size = 1;
	} else {
		printk("auxio: Unknown parent bus type [%s]\n",
		       dp->parent->name);
		printk("auxio: Unknown parent bus type [%pOFn]\n",
		       dp->parent);
		return -ENODEV;
	}
	auxio_register = of_ioremap(&dev->resource[0], 0, size, "auxio");
+2 −2
Original line number Diff line number Diff line
@@ -41,8 +41,8 @@ static int power_probe(struct platform_device *op)

	power_reg = of_ioremap(res, 0, 0x4, "power");

	printk(KERN_INFO "%s: Control reg at %llx\n",
	       op->dev.of_node->name, res->start);
	printk(KERN_INFO "%pOFn: Control reg at %llx\n",
	       op->dev.of_node, res->start);

	if (has_button_interrupt(irq, op->dev.of_node)) {
		if (request_irq(irq,