summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/pseries/ibmebus.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-28 04:52:07 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-03 08:40:01 +0300
commitb9ef7b4b867f56114bedbe6bf104cfaba0ca818e (patch)
tree842557b731ca055ae423cbc3917f6310e86c87d3 /arch/powerpc/platforms/pseries/ibmebus.c
parent0bdba867f01d69cffefee707504d3155a30f2d0f (diff)
downloadlinux-b9ef7b4b867f56114bedbe6bf104cfaba0ca818e.tar.xz
powerpc: 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: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Arnd Bergmann <arnd@arndb.de> Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/pseries/ibmebus.c')
-rw-r--r--arch/powerpc/platforms/pseries/ibmebus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/ibmebus.c b/arch/powerpc/platforms/pseries/ibmebus.c
index c7c1140c13b6..5b4a56131904 100644
--- a/arch/powerpc/platforms/pseries/ibmebus.c
+++ b/arch/powerpc/platforms/pseries/ibmebus.c
@@ -404,7 +404,7 @@ static ssize_t name_show(struct device *dev,
struct platform_device *ofdev;
ofdev = to_platform_device(dev);
- return sprintf(buf, "%s\n", ofdev->dev.of_node->name);
+ return sprintf(buf, "%pOFn\n", ofdev->dev.of_node);
}
static DEVICE_ATTR_RO(name);