Commit 0869b3a4 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

ixp4xx-eth: use an unique MDIO bus name.

Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a05a820
...@@ -529,7 +529,7 @@ static int ixp4xx_mdio_register(void) ...@@ -529,7 +529,7 @@ static int ixp4xx_mdio_register(void)
mdio_bus->name = "IXP4xx MII Bus"; mdio_bus->name = "IXP4xx MII Bus";
mdio_bus->read = &ixp4xx_mdio_read; mdio_bus->read = &ixp4xx_mdio_read;
mdio_bus->write = &ixp4xx_mdio_write; mdio_bus->write = &ixp4xx_mdio_write;
strcpy(mdio_bus->id, "0"); snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "ixp4xx-eth-0");
if ((err = mdiobus_register(mdio_bus))) if ((err = mdiobus_register(mdio_bus)))
mdiobus_free(mdio_bus); mdiobus_free(mdio_bus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment