diff options
author | Rob Herring | 2018-11-16 23:05:37 +0100 |
---|---|---|
committer | David S. Miller | 2018-11-18 06:52:11 +0100 |
commit | ee5b60eba73bd9f854c6d810c582a8097bdca0ef (patch) | |
tree | 142711b8c413ea800e7e042848b97f12fb67c908 | |
parent | net: align gnet_stats_basic_cpu struct (diff) | |
download | kernel-qcow2-linux-ee5b60eba73bd9f854c6d810c582a8097bdca0ef.tar.gz kernel-qcow2-linux-ee5b60eba73bd9f854c6d810c582a8097bdca0ef.tar.xz kernel-qcow2-linux-ee5b60eba73bd9f854c6d810c582a8097bdca0ef.zip |
atm: 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.
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>
-rw-r--r-- | drivers/atm/fore200e.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index f55ffde877b5..14053e01a2cc 100644 --- a/drivers/atm/fore200e.c +++ b/drivers/atm/fore200e.c @@ -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 = { |