summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-01-09 23:59:26 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-10 16:35:02 -0800
commita77e929a24ccf5a8545266a0c247e5ae862f13ba (patch)
tree00b8be4c9f5e4d779cbfa1f071ee7728063b6029 /drivers/net/phy
parent9e6c643bb4502c50b6511206601b7760c610dfcc (diff)
downloadop-kernel-dev-a77e929a24ccf5a8545266a0c247e5ae862f13ba.zip
op-kernel-dev-a77e929a24ccf5a8545266a0c247e5ae862f13ba.tar.gz
mdio-gpio: 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/phy')
-rw-r--r--drivers/net/phy/mdio-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index 89c5a3e..50e8e5e 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -116,7 +116,7 @@ static struct mii_bus * __devinit mdio_gpio_bus_init(struct device *dev,
if (!new_bus->irq[i])
new_bus->irq[i] = PHY_POLL;
- snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", bus_id);
+ snprintf(new_bus->id, MII_BUS_ID_SIZE, "gpio-%x", bus_id);
if (gpio_request(bitbang->mdc, "mdc"))
goto out_free_bus;
OpenPOWER on IntegriCloud