From: Sean Anderson Date: Tue, 15 Sep 2020 14:44:54 +0000 (-0400) Subject: net: mvneta: Fix not always calling dev_err with a device X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=13cbe299d0e03687b1b7c66316aa851cb23a6bd6;p=u-boot.git net: mvneta: Fix not always calling dev_err with a device No need for indirection here. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass Tested-by: Patrick Delaunay --- diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 4c7d06ca40..2c93fe42f7 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -1402,7 +1402,7 @@ static int mvneta_init(struct udevice *dev) err = mvneta_init2(pp); if (err < 0) { - dev_err(&pdev->dev, "can't init eth hal\n"); + dev_err(dev, "can't init eth hal\n"); return err; } @@ -1410,7 +1410,7 @@ static int mvneta_init(struct udevice *dev) err = mvneta_port_power_up(pp, pp->phy_interface); if (err < 0) { - dev_err(&pdev->dev, "can't power up port\n"); + dev_err(dev, "can't power up port\n"); return err; }