diff options
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r-- | drivers/net/macb.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index f6c4936e2fa8..872c1bdf42bd 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c | |||
@@ -211,10 +211,10 @@ static int macb_mii_probe(struct net_device *dev) | |||
211 | 211 | ||
212 | /* attach the mac to the phy */ | 212 | /* attach the mac to the phy */ |
213 | if (pdata && pdata->is_rmii) { | 213 | if (pdata && pdata->is_rmii) { |
214 | phydev = phy_connect(dev, phydev->dev.bus_id, | 214 | phydev = phy_connect(dev, dev_name(&phydev->dev), |
215 | &macb_handle_link_change, 0, PHY_INTERFACE_MODE_RMII); | 215 | &macb_handle_link_change, 0, PHY_INTERFACE_MODE_RMII); |
216 | } else { | 216 | } else { |
217 | phydev = phy_connect(dev, phydev->dev.bus_id, | 217 | phydev = phy_connect(dev, dev_name(&phydev->dev), |
218 | &macb_handle_link_change, 0, PHY_INTERFACE_MODE_MII); | 218 | &macb_handle_link_change, 0, PHY_INTERFACE_MODE_MII); |
219 | } | 219 | } |
220 | 220 | ||
@@ -527,7 +527,7 @@ static int macb_poll(struct napi_struct *napi, int budget) | |||
527 | * this function was called last time, and no packets | 527 | * this function was called last time, and no packets |
528 | * have been received since. | 528 | * have been received since. |
529 | */ | 529 | */ |
530 | netif_rx_complete(napi); | 530 | napi_complete(napi); |
531 | goto out; | 531 | goto out; |
532 | } | 532 | } |
533 | 533 | ||
@@ -538,13 +538,13 @@ static int macb_poll(struct napi_struct *napi, int budget) | |||
538 | dev_warn(&bp->pdev->dev, | 538 | dev_warn(&bp->pdev->dev, |
539 | "No RX buffers complete, status = %02lx\n", | 539 | "No RX buffers complete, status = %02lx\n", |
540 | (unsigned long)status); | 540 | (unsigned long)status); |
541 | netif_rx_complete(napi); | 541 | napi_complete(napi); |
542 | goto out; | 542 | goto out; |
543 | } | 543 | } |
544 | 544 | ||
545 | work_done = macb_rx(bp, budget); | 545 | work_done = macb_rx(bp, budget); |
546 | if (work_done < budget) | 546 | if (work_done < budget) |
547 | netif_rx_complete(napi); | 547 | napi_complete(napi); |
548 | 548 | ||
549 | /* | 549 | /* |
550 | * We've done what we can to clean the buffers. Make sure we | 550 | * We've done what we can to clean the buffers. Make sure we |
@@ -579,7 +579,7 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id) | |||
579 | } | 579 | } |
580 | 580 | ||
581 | if (status & MACB_RX_INT_FLAGS) { | 581 | if (status & MACB_RX_INT_FLAGS) { |
582 | if (netif_rx_schedule_prep(&bp->napi)) { | 582 | if (napi_schedule_prep(&bp->napi)) { |
583 | /* | 583 | /* |
584 | * There's no point taking any more interrupts | 584 | * There's no point taking any more interrupts |
585 | * until we have processed the buffers | 585 | * until we have processed the buffers |
@@ -587,7 +587,7 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id) | |||
587 | macb_writel(bp, IDR, MACB_RX_INT_FLAGS); | 587 | macb_writel(bp, IDR, MACB_RX_INT_FLAGS); |
588 | dev_dbg(&bp->pdev->dev, | 588 | dev_dbg(&bp->pdev->dev, |
589 | "scheduling RX softirq\n"); | 589 | "scheduling RX softirq\n"); |
590 | __netif_rx_schedule(&bp->napi); | 590 | __napi_schedule(&bp->napi); |
591 | } | 591 | } |
592 | } | 592 | } |
593 | 593 | ||
@@ -1077,7 +1077,7 @@ static void macb_get_drvinfo(struct net_device *dev, | |||
1077 | 1077 | ||
1078 | strcpy(info->driver, bp->pdev->dev.driver->name); | 1078 | strcpy(info->driver, bp->pdev->dev.driver->name); |
1079 | strcpy(info->version, "$Revision: 1.14 $"); | 1079 | strcpy(info->version, "$Revision: 1.14 $"); |
1080 | strcpy(info->bus_info, bp->pdev->dev.bus_id); | 1080 | strcpy(info->bus_info, dev_name(&bp->pdev->dev)); |
1081 | } | 1081 | } |
1082 | 1082 | ||
1083 | static struct ethtool_ops macb_ethtool_ops = { | 1083 | static struct ethtool_ops macb_ethtool_ops = { |
@@ -1234,8 +1234,8 @@ static int __init macb_probe(struct platform_device *pdev) | |||
1234 | 1234 | ||
1235 | phydev = bp->phy_dev; | 1235 | phydev = bp->phy_dev; |
1236 | printk(KERN_INFO "%s: attached PHY driver [%s] " | 1236 | printk(KERN_INFO "%s: attached PHY driver [%s] " |
1237 | "(mii_bus:phy_addr=%s, irq=%d)\n", | 1237 | "(mii_bus:phy_addr=%s, irq=%d)\n", dev->name, |
1238 | dev->name, phydev->drv->name, phydev->dev.bus_id, phydev->irq); | 1238 | phydev->drv->name, dev_name(&phydev->dev), phydev->irq); |
1239 | 1239 | ||
1240 | return 0; | 1240 | return 0; |
1241 | 1241 | ||