diff options
author | Tom Rini <trini@konsulko.com> | 2020-09-30 09:07:06 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-30 09:07:06 -0400 |
commit | 527fad0b2484bf1dd4c443c4c8f4384aa256938f (patch) | |
tree | e50b2e3551ce9ac05713b1204e63faea793e94f7 /drivers/net/sunxi_emac.c | |
parent | 0ac83d080a0044cd0d8f782ba12f02cf969d3004 (diff) | |
parent | ceb70bb870ac0761992d3e38e9287a338e3b846a (diff) |
Merge branch '2020-09-29-dev_xxx-print-improvement' into next
- Improve our dev_xxx(..) wrappers to be generally used and available
rather than discarded at link/compile time.
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; |