summaryrefslogtreecommitdiff
path: root/drivers/phy/marvell/phy-berlin-sata.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-28 04:52:40 +0300
committerKishon Vijay Abraham I <kishon@ti.com>2018-09-25 13:40:07 +0300
commitac9ba7dc8613773b037a96af24f381ef230ef1ae (patch)
tree52f20c37784ba1c99c5c5f57ce94eb9d2266eb37 /drivers/phy/marvell/phy-berlin-sata.c
parentfcd0eec4f54f1a8627a2d7fcbaaeed18261276a4 (diff)
downloadlinux-ac9ba7dc8613773b037a96af24f381ef230ef1ae.tar.xz
phy: 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: Kishon Vijay Abraham I <kishon@ti.com> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/marvell/phy-berlin-sata.c')
-rw-r--r--drivers/phy/marvell/phy-berlin-sata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/phy/marvell/phy-berlin-sata.c b/drivers/phy/marvell/phy-berlin-sata.c
index c1bb6725e48f..a91fc67fc4e0 100644
--- a/drivers/phy/marvell/phy-berlin-sata.c
+++ b/drivers/phy/marvell/phy-berlin-sata.c
@@ -231,14 +231,14 @@ static int phy_berlin_sata_probe(struct platform_device *pdev)
struct phy_berlin_desc *phy_desc;
if (of_property_read_u32(child, "reg", &phy_id)) {
- dev_err(dev, "missing reg property in node %s\n",
- child->name);
+ dev_err(dev, "missing reg property in node %pOFn\n",
+ child);
ret = -EINVAL;
goto put_child;
}
if (phy_id >= ARRAY_SIZE(phy_berlin_power_down_bits)) {
- dev_err(dev, "invalid reg in node %s\n", child->name);
+ dev_err(dev, "invalid reg in node %pOFn\n", child);
ret = -EINVAL;
goto put_child;
}