]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: mdio: Fix not calling dev_dbg with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:44:53 +0000 (10:44 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:06 +0000 (08:53 -0400)
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>
net/mdio-uclass.c

index 66ee2e19763aea2bf03343c16664ba7574fe9d37..b5e8e465123743a32ea3e32255cdd0c9c4fb7538 100644 (file)
@@ -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;
        }