Skip to content

Commit

Permalink
mdio-gpio: use an unique MDIO bus name.
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jan 11, 2012
1 parent 9e6c643 commit a77e929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/mdio-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a77e929

Please sign in to comment.