diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-27 00:12:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-27 00:12:58 -0500 |
commit | db1d7bf70f42124f73675fca62fe32f3ab1111b4 (patch) | |
tree | fc6d52f9c898585ddaea22e2775267d3eb389617 /drivers/net/sb1250-mac.c | |
parent | 3617aa485c7394e20fdaf356b1b78516fcaaa0d1 (diff) |
net: struct device - replace bus_id with dev_name(), dev_set_name()
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sb1250-mac.c')
-rw-r--r-- | drivers/net/sb1250-mac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/sb1250-mac.c b/drivers/net/sb1250-mac.c index 3e11c1d6d792..88dd2e09832f 100644 --- a/drivers/net/sb1250-mac.c +++ b/drivers/net/sb1250-mac.c | |||
@@ -2478,7 +2478,7 @@ static int sbmac_mii_probe(struct net_device *dev) | |||
2478 | return -ENXIO; | 2478 | return -ENXIO; |
2479 | } | 2479 | } |
2480 | 2480 | ||
2481 | phy_dev = phy_connect(dev, phy_dev->dev.bus_id, &sbmac_mii_poll, 0, | 2481 | phy_dev = phy_connect(dev, dev_name(&phy_dev->dev), &sbmac_mii_poll, 0, |
2482 | PHY_INTERFACE_MODE_GMII); | 2482 | PHY_INTERFACE_MODE_GMII); |
2483 | if (IS_ERR(phy_dev)) { | 2483 | if (IS_ERR(phy_dev)) { |
2484 | printk(KERN_ERR "%s: could not attach to PHY\n", dev->name); | 2484 | printk(KERN_ERR "%s: could not attach to PHY\n", dev->name); |
@@ -2500,7 +2500,7 @@ static int sbmac_mii_probe(struct net_device *dev) | |||
2500 | 2500 | ||
2501 | pr_info("%s: attached PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n", | 2501 | pr_info("%s: attached PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n", |
2502 | dev->name, phy_dev->drv->name, | 2502 | dev->name, phy_dev->drv->name, |
2503 | phy_dev->dev.bus_id, phy_dev->irq); | 2503 | dev_name(&phy_dev->dev), phy_dev->irq); |
2504 | 2504 | ||
2505 | sc->phy_dev = phy_dev; | 2505 | sc->phy_dev = phy_dev; |
2506 | 2506 | ||
@@ -2697,7 +2697,7 @@ static int __init sbmac_probe(struct platform_device *pldev) | |||
2697 | sbm_base = ioremap_nocache(res->start, res->end - res->start + 1); | 2697 | sbm_base = ioremap_nocache(res->start, res->end - res->start + 1); |
2698 | if (!sbm_base) { | 2698 | if (!sbm_base) { |
2699 | printk(KERN_ERR "%s: unable to map device registers\n", | 2699 | printk(KERN_ERR "%s: unable to map device registers\n", |
2700 | pldev->dev.bus_id); | 2700 | dev_name(&pldev->dev)); |
2701 | err = -ENOMEM; | 2701 | err = -ENOMEM; |
2702 | goto out_out; | 2702 | goto out_out; |
2703 | } | 2703 | } |
@@ -2708,7 +2708,7 @@ static int __init sbmac_probe(struct platform_device *pldev) | |||
2708 | * If we find a zero, skip this MAC. | 2708 | * If we find a zero, skip this MAC. |
2709 | */ | 2709 | */ |
2710 | sbmac_orig_hwaddr = __raw_readq(sbm_base + R_MAC_ETHERNET_ADDR); | 2710 | sbmac_orig_hwaddr = __raw_readq(sbm_base + R_MAC_ETHERNET_ADDR); |
2711 | pr_debug("%s: %sconfiguring MAC at 0x%08Lx\n", pldev->dev.bus_id, | 2711 | pr_debug("%s: %sconfiguring MAC at 0x%08Lx\n", dev_name(&pldev->dev), |
2712 | sbmac_orig_hwaddr ? "" : "not ", (long long)res->start); | 2712 | sbmac_orig_hwaddr ? "" : "not ", (long long)res->start); |
2713 | if (sbmac_orig_hwaddr == 0) { | 2713 | if (sbmac_orig_hwaddr == 0) { |
2714 | err = 0; | 2714 | err = 0; |
@@ -2721,7 +2721,7 @@ static int __init sbmac_probe(struct platform_device *pldev) | |||
2721 | dev = alloc_etherdev(sizeof(struct sbmac_softc)); | 2721 | dev = alloc_etherdev(sizeof(struct sbmac_softc)); |
2722 | if (!dev) { | 2722 | if (!dev) { |
2723 | printk(KERN_ERR "%s: unable to allocate etherdev\n", | 2723 | printk(KERN_ERR "%s: unable to allocate etherdev\n", |
2724 | pldev->dev.bus_id); | 2724 | dev_name(&pldev->dev)); |
2725 | err = -ENOMEM; | 2725 | err = -ENOMEM; |
2726 | goto out_unmap; | 2726 | goto out_unmap; |
2727 | } | 2727 | } |