]> 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 17:50:57 +0000 (19:50 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 23 Sep 2011 23:45:51 +0000 (01:45 +0200)
commit5648a8256c1c07fc3a565e87f2bc779fed32521f
tree68154469f487ed794415e3046623406ce91ebc6c
parent2f19d080fb14bdddf11bf54d4db6306235c46c99
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