diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2015-10-03 13:03:47 -0700 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-11-14 18:58:27 +0100 |
commit | 6c2295ef2fb999cc0bed5e722e6eddcc56742e14 (patch) | |
tree | 7a08a6587c8a3678a6c9478e12bd81eb0b7037b3 /arch | |
parent | 9bc623ed14f83e2facf5ada94405d39c2a7be3fd (diff) | |
download | lwn-6c2295ef2fb999cc0bed5e722e6eddcc56742e14.tar.gz lwn-6c2295ef2fb999cc0bed5e722e6eddcc56742e14.zip |
ARM: orion: Fix DSA platform device after mvmdio conversion
commit d836ace65ee98d7079bc3c5afdbcc0e27dca20a3 upstream.
DSA expects the host_dev pointer to be the device structure associated
with the MDIO bus controller driver. First commit breaking that was
c3a07134e6aa ("mv643xx_eth: convert to use the Marvell Orion MDIO
driver"), and then, it got completely under the radar for a while.
Reported-by: Frans van de Wiel <fvdw@fvdw.eu>
Fixes: c3a07134e6aa ("mv643xx_eth: convert to use the Marvell Orion MDIO driver")
CC: stable@vger.kernel.org
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/plat-orion/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index c66d163d7a2a..b1e00f37016e 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -498,7 +498,7 @@ void __init orion_ge00_switch_init(struct dsa_platform_data *d, int irq) d->netdev = &orion_ge00.dev; for (i = 0; i < d->nr_chips; i++) - d->chip[i].mii_bus = &orion_ge00_shared.dev; + d->chip[i].mii_bus = &orion_ge_mvmdio.dev; orion_switch_device.dev.platform_data = d; platform_device_register(&orion_switch_device); |