summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-2.6.26/801-ag71xx_mii_bus_id_fix.patch
blob: 60f2b7f96d0fad62967f59e17239b44b55a940cb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/drivers/net/ag71xx/ag71xx_mii.c
+++ b/drivers/net/ag71xx/ag71xx_mii.c
@@ -397,7 +397,7 @@
 	ag->mii_bus.read = ag71xx_mdio_read;
 	ag->mii_bus.write = ag71xx_mdio_write;
 	ag->mii_bus.reset = ag71xx_mdio_reset;
-	ag->mii_bus.id = id;
+	snprintf(ag->mii_bus.id, MII_BUS_ID_SIZE, "%x", id);
 	ag->mii_bus.priv = ag;
 	ag->mii_bus.dev = &ag->dev->dev;