ar71xx: change mii_bus name
[openwrt.git] / target / linux / ar71xx / files / drivers / net / ag71xx / ag71xx_mdio.c
index b6fccbb..d3ff13e 100644 (file)
@@ -187,7 +187,7 @@ static int __init ag71xx_mdio_probe(struct platform_device *pdev)
        am->mii_bus->irq = am->mii_irq;
        am->mii_bus->priv = am;
        am->mii_bus->parent = &pdev->dev;
        am->mii_bus->irq = am->mii_irq;
        am->mii_bus->priv = am;
        am->mii_bus->parent = &pdev->dev;
-       snprintf(am->mii_bus->id, MII_BUS_ID_SIZE, "%x", 0);
+       snprintf(am->mii_bus->id, MII_BUS_ID_SIZE, "%s", dev_name(&pdev->dev));
        am->mii_bus->phy_mask = pdata->phy_mask;
 
        for (i = 0; i < PHY_MAX_ADDR; i++)
        am->mii_bus->phy_mask = pdata->phy_mask;
 
        for (i = 0; i < PHY_MAX_ADDR; i++)
This page took 0.02932 seconds and 4 git commands to generate.