]> Git Repo - linux.git/blobdiff - drivers/net/ethernet/ti/cpsw.c
net: Convert to using %pOF instead of full_name
[linux.git] / drivers / net / ethernet / ti / cpsw.c
index badd0a8caeb9e85d26a16d48b0eb892123276aaf..c8776dbf1a55adc23bf5ce9c0b43c8867f72af93 100644 (file)
@@ -1321,8 +1321,8 @@ static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv)
                phy = of_phy_connect(priv->ndev, slave->data->phy_node,
                                 &cpsw_adjust_link, 0, slave->data->phy_if);
                if (!phy) {
-                       dev_err(priv->dev, "phy \"%s\" not found on slave %d\n",
-                               slave->data->phy_node->full_name,
+                       dev_err(priv->dev, "phy \"%pOF\" not found on slave %d\n",
+                               slave->data->phy_node,
                                slave->slave_num);
                        return;
                }
@@ -2670,8 +2670,8 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,
                parp = of_get_property(slave_node, "phy_id", &lenp);
                if (slave_data->phy_node) {
                        dev_dbg(&pdev->dev,
-                               "slave[%d] using phy-handle=\"%s\"\n",
-                               i, slave_data->phy_node->full_name);
+                               "slave[%d] using phy-handle=\"%pOF\"\n",
+                               i, slave_data->phy_node);
                } else if (of_phy_is_fixed_link(slave_node)) {
                        /* In the case of a fixed PHY, the DT node associated
                         * to the PHY is the Ethernet MAC DT node.
This page took 0.030051 seconds and 4 git commands to generate.