NET: au1000_eth: Pass MACDMA address through platform resource info.
authorManuel Lauss <manuel.lauss@googlemail.com>
Tue, 2 Aug 2011 17:50:57 +0000 (19:50 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Oct 2011 22:34:22 +0000 (23:34 +0100)
commit553737aa95016542780e7a4b4b810fef85c4eb72
tree0cf2429c1ace23d7e5f9b35fcb8e4a287283c1d1
parent08fa624f504e5edab6f69014fc92ecc7b2bbd81e
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>
arch/mips/alchemy/common/platform.c
drivers/net/au1000_eth.c
drivers/net/au1000_eth.h