atm: Convert to using %pOFn instead of device_node.name
authorRob Herring <robh@kernel.org>
Fri, 16 Nov 2018 22:05:37 +0000 (16:05 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 05:52:11 +0000 (21:52 -0800)
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Chas Williams <3chas3@gmail.com>
Cc: linux-atm-general@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/fore200e.c

index f55ffde877b56f17a65fc98698a98bbf65284c60..14053e01a2cc121bc9c386a65c78e90f0c54b0e3 100644 (file)
@@ -754,8 +754,8 @@ static int fore200e_sba_proc_read(struct fore200e *fore200e, char *page)
 
        regs = of_get_property(op->dev.of_node, "reg", NULL);
 
-       return sprintf(page, "   SBUS slot/device:\t\t%d/'%s'\n",
-                      (regs ? regs->which_io : 0), op->dev.of_node->name);
+       return sprintf(page, "   SBUS slot/device:\t\t%d/'%pOFn'\n",
+                      (regs ? regs->which_io : 0), op->dev.of_node);
 }
 
 static const struct fore200e_bus fore200e_sbus_ops = {