Thread (26 messages) flat view 26 messages, 5 authors, 2012-01-11

Re: [PATCH 02/21] bfin_mac: use an unique MDIO bus name.

From: Bob Liu <hidden>
Date: 2012-01-11 14:47:35
Also in: lkml

On Tue, Jan 10, 2012 at 5:59 PM, Florian Fainelli [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
 drivers/net/ethernet/adi/bfin_mac.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index b6d69c9..d812a10 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -1670,7 +1670,8 @@ static int __devinit bfin_mii_bus_probe(struct platform_device *pdev)
       miibus->name = "bfin_mii_bus";
       miibus->phy_mask = mii_bus_pd->phy_mask;

-       snprintf(miibus->id, MII_BUS_ID_SIZE, "0");
+       snprintf(miibus->id, MII_BUS_ID_SIZE, "%s-%x",
+               pdev->name, pdev->id);
       miibus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL);
       if (!miibus->irq)
               goto out_err_irq_alloc;
--
1.7.5.4
Looks fine for me.  Thanks.

Acked-by: Bob Liu <redacted>

-- 
Regards,
--Bob
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help