From: Florian Fainelli Date: Mon, 9 Jan 2012 23:59:10 +0000 (+0000) Subject: sb1250: use an unique MDIO bus name. X-Git-Tag: v3.3-rc1~82^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=446bbc4b5ee122c3a3a4954b144d031f0f9aa006;p=profile%2Fivi%2Fkernel-x86-ivi.git sb1250: use an unique MDIO bus name. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/broadcom/sb1250-mac.c index 8fa7abc..084904c 100644 --- a/drivers/net/ethernet/broadcom/sb1250-mac.c +++ b/drivers/net/ethernet/broadcom/sb1250-mac.c @@ -2259,7 +2259,8 @@ static int sbmac_init(struct platform_device *pldev, long long base) } sc->mii_bus->name = sbmac_mdio_string; - snprintf(sc->mii_bus->id, MII_BUS_ID_SIZE, "%x", idx); + snprintf(sc->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", + pldev->name, idx); sc->mii_bus->priv = sc; sc->mii_bus->read = sbmac_mii_read; sc->mii_bus->write = sbmac_mii_write;