aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSean Anderson2020-09-15 10:44:53 -0400
committerTom Rini2020-09-30 08:53:06 -0400
commit0851bd1e75bcd237b08a9316e8cb74a8ee1639a0 (patch)
tree7efdb5a57a12ea4deb0c2136f8c6fe579658e595 /net
parent1485d6492359f8ea39c7f3a96076f6a1a3d060f1 (diff)
net: mdio: Fix not calling dev_dbg with a device
The name of the device we are working on is `ethdev` and not just `dev`. Signed-off-by: Sean Anderson <seanga2@gmail.com> Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'net')
-rw-r--r--net/mdio-uclass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c
index 66ee2e19763..b5e8e465123 100644
--- a/net/mdio-uclass.c
+++ b/net/mdio-uclass.c
@@ -145,7 +145,7 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev,
break;
if (!ofnode_valid(phandle.node)) {
- dev_dbg(dev, "can't find PHY node\n");
+ dev_dbg(ethdev, "can't find PHY node\n");
return NULL;
}
@@ -161,7 +161,7 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev,
if (uclass_get_device_by_ofnode(UCLASS_MDIO,
ofnode_get_parent(phandle.node),
&mdiodev)) {
- dev_dbg(dev, "can't find MDIO bus for node %s\n",
+ dev_dbg(ethdev, "can't find MDIO bus for node %s\n",
ofnode_get_name(ofnode_get_parent(phandle.node)));
return NULL;
}