2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00

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>
This commit is contained in:
Florian Fainelli 2012-01-09 23:59:26 +00:00 committed by David S. Miller
parent 9e6c643bb4
commit a77e929a24

View File

@ -116,7 +116,7 @@ static struct mii_bus * __devinit mdio_gpio_bus_init(struct device *dev,
if (!new_bus->irq[i]) if (!new_bus->irq[i])
new_bus->irq[i] = PHY_POLL; 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")) if (gpio_request(bitbang->mdc, "mdc"))
goto out_free_bus; goto out_free_bus;