aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xscale/ixp4xx_eth.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-01-09 18:59:23 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-10 19:35:01 -0500
commit0869b3a456d62070fb1f7e3519fd53934b52530c (patch)
tree90cd72132c43c8c2a3408d0833f0f34816b62b48 /drivers/net/ethernet/xscale/ixp4xx_eth.c
parent5a05a8200a4359ef2bfe9094c137dee35cfdd516 (diff)
ixp4xx-eth: use an unique MDIO bus name.
Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xscale/ixp4xx_eth.c')
-rw-r--r--drivers/net/ethernet/xscale/ixp4xx_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c
index f45c85a84261..72a854f05bb8 100644
--- a/drivers/net/ethernet/xscale/ixp4xx_eth.c
+++ b/drivers/net/ethernet/xscale/ixp4xx_eth.c
@@ -529,7 +529,7 @@ static int ixp4xx_mdio_register(void)
529 mdio_bus->name = "IXP4xx MII Bus"; 529 mdio_bus->name = "IXP4xx MII Bus";
530 mdio_bus->read = &ixp4xx_mdio_read; 530 mdio_bus->read = &ixp4xx_mdio_read;
531 mdio_bus->write = &ixp4xx_mdio_write; 531 mdio_bus->write = &ixp4xx_mdio_write;
532 strcpy(mdio_bus->id, "0"); 532 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "ixp4xx-eth-0");
533 533
534 if ((err = mdiobus_register(mdio_bus))) 534 if ((err = mdiobus_register(mdio_bus)))
535 mdiobus_free(mdio_bus); 535 mdiobus_free(mdio_bus);