Commit 2ce711f9 authored by Rob Herring's avatar Rob Herring Committed by Jens Axboe

ata: ahci: 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: Hans de Goede <hdegoede@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-ide@vger.kernel.org
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 050cdc6c
...@@ -303,8 +303,8 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port, ...@@ -303,8 +303,8 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
/* No PHY support. Check if PHY is required. */ /* No PHY support. Check if PHY is required. */
if (of_find_property(node, "phys", NULL)) { if (of_find_property(node, "phys", NULL)) {
dev_err(dev, dev_err(dev,
"couldn't get PHY in node %s: ENOSYS\n", "couldn't get PHY in node %pOFn: ENOSYS\n",
node->name); node);
break; break;
} }
/* fall through */ /* fall through */
...@@ -316,8 +316,8 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port, ...@@ -316,8 +316,8 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
default: default:
dev_err(dev, dev_err(dev,
"couldn't get PHY in node %s: %d\n", "couldn't get PHY in node %pOFn: %d\n",
node->name, rc); node, rc);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment