Skip to content

Commit

Permalink
net: dsa: fix mii_bus to host_dev replacement
Browse files Browse the repository at this point in the history
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: b4d2394 ("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>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Sep 15, 2014
1 parent 10ee1c3 commit c1f570a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dsa/dsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c1f570a

Please sign in to comment.