ata: ahci: Convert to using %pOFn instead of device_node.name
authorRob Herring <robh@kernel.org>
Tue, 28 Aug 2018 01:52:10 +0000 (20:52 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Aug 2018 14:44:14 +0000 (08:44 -0600)
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: Rob Herring <robh@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/libahci_platform.c

index c92c10d..8ac2be8 100644 (file)
@@ -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. */
                if (of_find_property(node, "phys", NULL)) {
                        dev_err(dev,
-                               "couldn't get PHY in node %s: ENOSYS\n",
-                               node->name);
+                               "couldn't get PHY in node %pOFn: ENOSYS\n",
+                               node);
                        break;
                }
                /* fall through */
@@ -316,8 +316,8 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
 
        default:
                dev_err(dev,
-                       "couldn't get PHY in node %s: %d\n",
-                       node->name, rc);
+                       "couldn't get PHY in node %pOFn: %d\n",
+                       node, rc);
 
                break;
        }