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-Tag: baikal/mips/sdk5.9~184^2~9^2~30 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=0b009ad1368718e0d2ff2174cfb353cc8272d0b2;p=uboot.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 |