Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63f67830 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

dnet: use an unique MDIO bus name.

parent 98d5e57e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -325,7 +325,8 @@ static int dnet_mii_init(struct dnet *bp)
	bp->mii_bus->write = &dnet_mdio_write;
	bp->mii_bus->reset = &dnet_mdio_reset;

	snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%x", 0);
	snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
		bp->pdev->name, bp->pdev->id);

	bp->mii_bus->priv = bp;