diff options
author | Sean Anderson | 2020-09-15 10:44:59 -0400 |
---|---|---|
committer | Tom Rini | 2020-09-30 08:53:22 -0400 |
commit | e2f74215227e971491bce6860771fd2736b4cfc8 (patch) | |
tree | c6360900503a3d62d7eaddb0e69270b179e1b025 /drivers/net/sunxi_emac.c | |
parent | 69876c54de27f8cd7ac3ed73a4a1f1dc5b7ebb1a (diff) |
net: sunxi: Fix not calling dev_xxx with a device
There's no dev to log with, so pass the device along with the priv data.
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/sunxi_emac.c')
-rw-r--r-- | drivers/net/sunxi_emac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index df18ecc0645..8e66ce24611 100644 --- a/drivers/net/sunxi_emac.c +++ b/drivers/net/sunxi_emac.c @@ -505,7 +505,8 @@ static int _sunxi_emac_eth_send(struct emac_eth_dev *priv, void *packet, return 0; } -static int sunxi_emac_board_setup(struct emac_eth_dev *priv) +static int sunxi_emac_board_setup(struct udevice *dev, + struct emac_eth_dev *priv) { struct sunxi_sramc_regs *sram = (struct sunxi_sramc_regs *)SUNXI_SRAMC_BASE; @@ -576,7 +577,7 @@ static int sunxi_emac_eth_probe(struct udevice *dev) return ret; } - ret = sunxi_emac_board_setup(priv); + ret = sunxi_emac_board_setup(dev, priv); if (ret) return ret; |