From: Florian Fainelli Date: Mon, 15 Sep 2014 21:48:08 +0000 (-0700) Subject: net: dsa: fix mii_bus to host_dev replacement X-Git-Tag: v3.18-rc1~52^2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1f570a6abc192f047550743f9957b617af605af;p=thirdparty%2Fkernel%2Flinux.git 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: b4d2394d01b ("dsa: Replace mii_bus with a generic host device") Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index b34d6978d7734..6e40928ec0e76 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -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)