diff options
author | Tony Lindgren <tony@atomide.com> | 2012-02-20 10:11:08 -0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-02-20 10:11:08 -0800 |
commit | 856c5403462419eff9a7891efeee7bddc2a08af6 (patch) | |
tree | 2f4bb681e10ec1f895600fa0a4b0b177dadf6fb4 /drivers/net/ethernet/freescale | |
parent | b0ee4e394009f02a1d1b166091a19e8b842b4ea4 (diff) | |
parent | d517110243130965e2803cc2373d434bdaf6dafb (diff) | |
download | blackbird-op-linux-856c5403462419eff9a7891efeee7bddc2a08af6.tar.gz blackbird-op-linux-856c5403462419eff9a7891efeee7bddc2a08af6.zip |
Merge branch 'fixes-mmc' into fixes
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index 7b25e9cf13f6..e92ef1bd732a 100644 --- a/drivers/net/ethernet/freescale/fec.c +++ b/drivers/net/ethernet/freescale/fec.c @@ -986,11 +986,11 @@ static int fec_enet_mii_probe(struct net_device *ndev) printk(KERN_INFO "%s: no PHY, assuming direct connection to switch\n", ndev->name); - strncpy(mdio_bus_id, "0", MII_BUS_ID_SIZE); + strncpy(mdio_bus_id, "fixed-0", MII_BUS_ID_SIZE); phy_id = 0; } - snprintf(phy_name, MII_BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, phy_id); + snprintf(phy_name, sizeof(phy_name), PHY_ID_FMT, mdio_bus_id, phy_id); phy_dev = phy_connect(ndev, phy_name, &fec_enet_adjust_link, 0, fep->phy_interface); if (IS_ERR(phy_dev)) { |