]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81bef9c194565f15df84e154f733a9535ee0be50
tree0cf2429c1ace23d7e5f9b35fcb8e4a287283c1d1
parent1e928bcd5b28bb393b446518ee5e723303e157bd
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