]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mv643xx_eth: get rid of static variables, allow multiple instances
authorLennert Buytenhek <buytenh@wantstofly.org>
Wed, 23 Apr 2008 23:27:02 +0000 (01:27 +0200)
committerDale Farnsworth <dale@farnsworth.org>
Tue, 29 Apr 2008 04:17:07 +0000 (21:17 -0700)
commitfa3959f457109cc7d082b86ea6daae927982815b
tree0e1f7aae6f3340d915f61e1489615972c629621d
parente31a94ed371c70855eb30b77c490d6d85dd4da26
mv643xx_eth: get rid of static variables, allow multiple instances

Move mv643xx_eth's static state (ethernet register block base address
and MII management interface spinlock) into a struct hanging off the
shared platform device.  This is necessary to support chips that
contain multiple mv643xx_eth silicon blocks.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Acked-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
arch/arm/mach-orion5x/common.c
arch/powerpc/platforms/chrp/pegasos_eth.c
arch/powerpc/sysdev/mv64x60_dev.c
arch/ppc/syslib/mv64x60.c
drivers/net/mv643xx_eth.c
include/linux/mv643xx_eth.h