summaryrefslogtreecommitdiffstats
path: root/drivers/net/au1000_eth.h
diff options
context:
space:
mode:
authorManuel Lauss2011-08-02 19:50:57 +0200
committerRalf Baechle2011-10-25 00:34:22 +0200
commit553737aa95016542780e7a4b4b810fef85c4eb72 (patch)
tree0cf2429c1ace23d7e5f9b35fcb8e4a287283c1d1 /drivers/net/au1000_eth.h
parentMIPS: Fix build with C=1 (diff)
downloadkernel-qcow2-linux-553737aa95016542780e7a4b4b810fef85c4eb72.tar.gz
kernel-qcow2-linux-553737aa95016542780e7a4b4b810fef85c4eb72.tar.xz
kernel-qcow2-linux-553737aa95016542780e7a4b4b810fef85c4eb72.zip
NET: au1000_eth: Pass MACDMA address through platform resource info.
This patch removes the last hardcoded base address from the au1000_eth driver. The base address of the MACDMA unit was derived from the platform device id; if someone registered the MACs in inverse order both would not work. So instead pass the base address of the DMA unit to the driver with the other platform resource information. Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com> Acked-by: David S. Miller <davem@davemloft.net> To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2674/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/net/au1000_eth.h')
-rw-r--r--drivers/net/au1000_eth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/au1000_eth.h b/drivers/net/au1000_eth.h
index 6229c774552c..4b7f7ad62bb8 100644
--- a/drivers/net/au1000_eth.h
+++ b/drivers/net/au1000_eth.h
@@ -124,7 +124,7 @@ struct au1000_private {
*/
struct mac_reg *mac; /* mac registers */
u32 *enable; /* address of MAC Enable Register */
-
+ void __iomem *macdma; /* base of MAC DMA port */
u32 vaddr; /* virtual address of rx/tx buffers */
dma_addr_t dma_addr; /* dma address of rx/tx buffers */