diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-09-15 14:48:08 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-15 17:52:48 -0400 |
commit | c1f570a6abc192f047550743f9957b617af605af (patch) | |
tree | fb948bf83a01f3b2e5db24f3f6c0c31e9febc279 /net/dsa | |
parent | 10ee1c34bedcc0e2a196d85ec87806fd111b5e79 (diff) | |
download | op-kernel-dev-c1f570a6abc192f047550743f9957b617af605af.zip op-kernel-dev-c1f570a6abc192f047550743f9957b617af605af.tar.gz |
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 <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/dsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index b34d697..6e40928 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) |