diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2015-10-03 13:03:47 -0700 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-12-14 12:17:31 -0500 |
commit | a62b833dd4af3c58b839317367b0586a5ca12669 (patch) | |
tree | 2df81d98cb5f80ed093becd44103989e30f04775 | |
parent | cf6580ef92b0f5baf6f9a0ff2c51d852ba5145ba (diff) | |
download | lwn-a62b833dd4af3c58b839317367b0586a5ca12669.tar.gz lwn-a62b833dd4af3c58b839317367b0586a5ca12669.zip |
ARM: orion: Fix DSA platform device after mvmdio conversion
[ Upstream commit d836ace65ee98d7079bc3c5afdbcc0e27dca20a3 ]
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: Sasha Levin <sasha.levin@oracle.com>
-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 f5b00f41c4f6..b8b6e22f9987 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -499,7 +499,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].host_dev = &orion_ge00_shared.dev; + d->chip[i].host_dev = &orion_ge_mvmdio.dev; orion_switch_device.dev.platform_data = d; platform_device_register(&orion_switch_device); |