Skip to content

Commit

Permalink
ARM: orion: Fix DSA platform device after mvmdio conversion
Browse files Browse the repository at this point in the history
DSA expects the host_dev pointer to be the device structure associated
with the MDIO bus controller driver. First commit breaking that was
c3a0713 ("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 <[email protected]>
Fixes: c3a0713 ("mv643xx_eth: convert to use the Marvell Orion MDIO driver")
CC: [email protected]
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Gregory CLEMENT <[email protected]>
  • Loading branch information
ffainelli authored and gclement committed Oct 6, 2015
1 parent 6ff33f3 commit d836ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-orion/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,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);
Expand Down

0 comments on commit d836ace

Please sign in to comment.