summaryrefslogtreecommitdiff
path: root/drivers/net/macb.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2020-03-26 15:01:29 +0100
committerTom Rini <trini@konsulko.com>2020-03-31 10:06:53 -0400
commit7f6b0f3357bd25c7ed23f8f5a76a99ab9a0fd398 (patch)
tree3f3ab0857906f2b5ec92ccf5054f8c7bb3c8cc0c /drivers/net/macb.c
parent4856cc7a972a7679cdbb33532ad932a3e865b18e (diff)
downloadu-boot-7f6b0f3357bd25c7ed23f8f5a76a99ab9a0fd398.tar.gz
u-boot-7f6b0f3357bd25c7ed23f8f5a76a99ab9a0fd398.tar.bz2
u-boot-7f6b0f3357bd25c7ed23f8f5a76a99ab9a0fd398.zip
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: 6c636514d499 ("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>
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r--drivers/net/macb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 631b53b093..bd588cab06 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -807,7 +807,7 @@ static int _macb_init(struct macb_device *macb, const char *name)
macb->next_rx_tail = 0;
#ifdef CONFIG_MACB_ZYNQ
- macb_writel(macb, DMACFG, MACB_ZYNQ_GEM_DMACR_INIT);
+ gem_writel(macb, DMACFG, MACB_ZYNQ_GEM_DMACR_INIT);
#endif
macb_writel(macb, RBQP, macb->rx_ring_dma);