diff options
author | Rob Herring <robh@kernel.org> | 2018-08-27 20:52:40 -0500 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2018-09-25 16:10:07 +0530 |
commit | ac9ba7dc8613773b037a96af24f381ef230ef1ae (patch) | |
tree | 52f20c37784ba1c99c5c5f57ce94eb9d2266eb37 /drivers/phy/broadcom | |
parent | fcd0eec4f54f1a8627a2d7fcbaaeed18261276a4 (diff) | |
download | linux-ac9ba7dc8613773b037a96af24f381ef230ef1ae.tar.bz2 |
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/broadcom')
-rw-r--r-- | drivers/phy/broadcom/phy-bcm-cygnus-pcie.c | 4 | ||||
-rw-r--r-- | drivers/phy/broadcom/phy-brcm-sata.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/phy/broadcom/phy-bcm-cygnus-pcie.c b/drivers/phy/broadcom/phy-bcm-cygnus-pcie.c index 0f4ac5d63cff..b074682d9dd8 100644 --- a/drivers/phy/broadcom/phy-bcm-cygnus-pcie.c +++ b/drivers/phy/broadcom/phy-bcm-cygnus-pcie.c @@ -153,8 +153,8 @@ static int cygnus_pcie_phy_probe(struct platform_device *pdev) struct cygnus_pcie_phy *p; if (of_property_read_u32(child, "reg", &id)) { - dev_err(dev, "missing reg property for %s\n", - child->name); + dev_err(dev, "missing reg property for %pOFn\n", + child); ret = -EINVAL; goto put_child; } diff --git a/drivers/phy/broadcom/phy-brcm-sata.c b/drivers/phy/broadcom/phy-brcm-sata.c index 8708ea3b4d6d..ac57f5a41708 100644 --- a/drivers/phy/broadcom/phy-brcm-sata.c +++ b/drivers/phy/broadcom/phy-brcm-sata.c @@ -600,8 +600,8 @@ static int brcm_sata_phy_probe(struct platform_device *pdev) struct brcm_sata_port *port; if (of_property_read_u32(child, "reg", &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; } |