提交 c1f570a6 编写于 作者: F Florian Fainelli 提交者: David S. Miller

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: b4d2394d ("dsa: Replace mii_bus with a generic host device")
Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 10ee1c34
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册