From: Sean Anderson Date: Tue, 15 Sep 2020 14:44:52 +0000 (-0400) Subject: net: bcm6368: Fix not calling dev_info with a device X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24style.Permalink%20%7D%7D?a=commitdiff_plain;h=1485d6492359f8ea39c7f3a96076f6a1a3d060f1;p=u-boot.git net: bcm6368: Fix not calling dev_info with a device Remove the pdev indirection. Signed-off-by: Sean Anderson Tested-by: Patrick Delaunay --- diff --git a/drivers/net/bcm6368-eth.c b/drivers/net/bcm6368-eth.c index 648fafd3e0..38a2a30fe6 100644 --- a/drivers/net/bcm6368-eth.c +++ b/drivers/net/bcm6368-eth.c @@ -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 |