1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-14 22:54:05 +02:00
openwrt-xburst/target/linux/ar71xx/patches-2.6.26/801-ag71xx_mii_bus_id_fix.patch
juhosg 2e588d167a [ar71xx] update to 2.6.26
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11968 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-28 09:48:29 +00:00

12 lines
357 B
Diff

--- 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;