]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: bcm6368: Fix not calling dev_info with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:44:52 +0000 (10:44 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:04 +0000 (08:53 -0400)
Remove the pdev indirection.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/net/bcm6368-eth.c

index 648fafd3e098ffd6b58a3b2902fc5a5c4e66956c..38a2a30fe6c817cefc708dc71676f2819d1bcc29 100644 (file)
@@ -249,8 +249,7 @@ static int bcm6368_eth_adjust_link(struct udevice *dev)
 
                /* link changed */
                if (!up) {
-                       dev_info(&priv->pdev->dev, "link DOWN on %s\n",
-                                port->name);
+                       dev_info(dev, "link DOWN on %s\n", port->name);
                        writeb_be(ETH_PORTOV_ENABLE_MASK,
                                  priv->base + ETH_PORTOV_REG(i));
                        writeb_be(ETH_PTCTRL_RXDIS_MASK |