]> git.baikalelectronics.ru Git - kernel.git/commit
mv643xx_eth: Place explicit port number in mv643xx_eth_platform_data
authorDale Farnsworth <dale@farnsworth.org>
Sat, 3 Mar 2007 13:40:28 +0000 (06:40 -0700)
committerJeff Garzik <jeff@garzik.org>
Tue, 6 Mar 2007 11:14:54 +0000 (06:14 -0500)
commit2592f97fe65e0fd93ca26d6783cf2f9329ec203b
tree939d601f7abda95e3f4919af2a371873f0c66928
parentd9949a2825e36f3caf1700401eb2ada79186a304
mv643xx_eth: Place explicit port number in mv643xx_eth_platform_data

We were using the platform_device.id field to identify which ethernet
port is used for mv643xx_eth device.  This is not generally correct.
It will be incorrect, for example, if a hardware platform uses a single
port but not the first port.  Here, we add an explicit port_number field
to struct mv643xx_eth_platform_data.

This makes the mv643xx_eth_platform_data structure required, but that
isn't an issue since all users currently provide it already.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
arch/mips/momentum/jaguar_atx/platform.c
arch/mips/momentum/ocelot_3/platform.c
arch/mips/momentum/ocelot_c/platform.c
arch/powerpc/platforms/chrp/pegasos_eth.c
arch/ppc/syslib/mv64x60.c
drivers/net/mv643xx_eth.c
include/linux/mv643xx.h