mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-05 22:31:36 +00:00
net: macb: Fix incorrect write function name when MACB_ZYNQ is enabled.
When MACB_ZYNQ is enabled there is compilation warnings
drivers/net/macb.c: In function ‘_macb_init’:
drivers/net/macb.h:675:33: error: ‘MACB_DMACFG’ undeclared (first use in this function);
did you mean ‘MACB_MCF’?
writel((value), (port)->regs + MACB_##reg)
^~~~~
It has been caused by changing macros name by commit below.
Fixes: 6c636514d4
("net: macb: sync header definitions as taken from Linux")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
4856cc7a97
commit
7f6b0f3357
1 changed files with 1 additions and 1 deletions
|
@ -807,7 +807,7 @@ static int _macb_init(struct macb_device *macb, const char *name)
|
||||||
macb->next_rx_tail = 0;
|
macb->next_rx_tail = 0;
|
||||||
|
|
||||||
#ifdef CONFIG_MACB_ZYNQ
|
#ifdef CONFIG_MACB_ZYNQ
|
||||||
macb_writel(macb, DMACFG, MACB_ZYNQ_GEM_DMACR_INIT);
|
gem_writel(macb, DMACFG, MACB_ZYNQ_GEM_DMACR_INIT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
macb_writel(macb, RBQP, macb->rx_ring_dma);
|
macb_writel(macb, RBQP, macb->rx_ring_dma);
|
||||||
|
|
Loading…
Add table
Reference in a new issue