Skip to contentSkip to conversation

net: dsa: fix mii_bus to host_dev replacement

PATCH Applied Florian Fainelli 2 participants 2 messages Sep 15, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 net/dsa/dsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/dsa/dsa.c +1 -1
index b34d6978d773..6e40928ec0e7 100644
@@ -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)
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw

From: Florian Fainelli <[email protected]>
Date: Mon, 15 Sep 2014 14:48:08 -0700

Quoted 6 lines

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")

Applied, thanks for catching this.