]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NET: au1000_eth: Pass MACDMA address through platform resource info.
authorManuel Lauss <manuel.lauss@googlemail.com>
Tue, 2 Aug 2011 15:50:57 +0000 (17:50 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 17 Sep 2011 00:40:45 +0000 (02:40 +0200)
commitda018f1aee69969391c62d8da2cf907fc8905ca0
tree2e3bdb1e8d80882ea5d62671b6b8caf503ac745d
parentd4001e086babc77f26b599893d803a2b6e46d602
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