net: dsa: fix mii_bus to host_dev replacement

dsa_of_probe() still used cd->mii_bus instead of cd->host_dev when
building with CONFIG_OF=y. Fix this by making the replacement here as
well.

Fixes: b4d2394d01 ("dsa: Replace mii_bus with a generic host device")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Florian Fainelli 2014-09-15 14:48:08 -07:00 committed by David S. Miller
parent 10ee1c34be
commit c1f570a6ab
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ static int dsa_of_probe(struct platform_device *pdev)
cd = &pd->chip[chip_index];
cd->of_node = child;
cd->mii_bus = &mdio_bus->dev;
cd->host_dev = &mdio_bus->dev;
sw_addr = of_get_property(child, "reg", NULL);
if (!sw_addr)