Commit 7f6b0f3357bd25c7ed23f8f5a76a99ab9a0fd398

Authored by Michal Simek
Committed by Tom Rini
1 parent 4856cc7a97

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -807,7 +807,7 @@
807 807 macb->next_rx_tail = 0;
808 808  
809 809 #ifdef CONFIG_MACB_ZYNQ
810   - macb_writel(macb, DMACFG, MACB_ZYNQ_GEM_DMACR_INIT);
  810 + gem_writel(macb, DMACFG, MACB_ZYNQ_GEM_DMACR_INIT);
811 811 #endif
812 812  
813 813 macb_writel(macb, RBQP, macb->rx_ring_dma);