diff options
author | Sean Anderson <seanga2@gmail.com> | 2020-09-15 10:44:54 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-30 08:53:12 -0400 |
commit | 13cbe299d0e03687b1b7c66316aa851cb23a6bd6 (patch) | |
tree | eb44d4e5f5b3abcbc78b8b455a36ccb5cfbc6948 /drivers/net | |
parent | 0851bd1e75bcd237b08a9316e8cb74a8ee1639a0 (diff) | |
download | u-boot-13cbe299d0e03687b1b7c66316aa851cb23a6bd6.zip u-boot-13cbe299d0e03687b1b7c66316aa851cb23a6bd6.tar.gz u-boot-13cbe299d0e03687b1b7c66316aa851cb23a6bd6.tar.bz2 |
net: mvneta: Fix not always calling dev_err with a device
No need for indirection here.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mvneta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 4c7d06c..2c93fe4 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; } |