diff options
author | Len Brown <len.brown@intel.com> | 2009-04-05 02:14:15 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-04-05 02:14:15 -0400 |
commit | 478c6a43fcbc6c11609f8cee7c7b57223907754f (patch) | |
tree | a7f7952099da60d33032aed6de9c0c56c9f8779e /drivers/net/macb.c | |
parent | 8a3f257c704e02aee9869decd069a806b45be3f1 (diff) | |
parent | 6bb597507f9839b13498781e481f5458aea33620 (diff) |
Merge branch 'linus' into release
Conflicts:
arch/x86/kernel/cpu/cpufreq/longhaul.c
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r-- | drivers/net/macb.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index f6c4936e2fa8..f50501013b1c 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 | ||
@@ -513,7 +513,6 @@ static int macb_rx(struct macb *bp, int budget) | |||
513 | static int macb_poll(struct napi_struct *napi, int budget) | 513 | static int macb_poll(struct napi_struct *napi, int budget) |
514 | { | 514 | { |
515 | struct macb *bp = container_of(napi, struct macb, napi); | 515 | struct macb *bp = container_of(napi, struct macb, napi); |
516 | struct net_device *dev = bp->dev; | ||
517 | int work_done; | 516 | int work_done; |
518 | u32 status; | 517 | u32 status; |
519 | 518 | ||
@@ -527,7 +526,7 @@ static int macb_poll(struct napi_struct *napi, int budget) | |||
527 | * this function was called last time, and no packets | 526 | * this function was called last time, and no packets |
528 | * have been received since. | 527 | * have been received since. |
529 | */ | 528 | */ |
530 | netif_rx_complete(napi); | 529 | napi_complete(napi); |
531 | goto out; | 530 | goto out; |
532 | } | 531 | } |
533 | 532 | ||
@@ -538,13 +537,13 @@ static int macb_poll(struct napi_struct *napi, int budget) | |||
538 | dev_warn(&bp->pdev->dev, | 537 | dev_warn(&bp->pdev->dev, |
539 | "No RX buffers complete, status = %02lx\n", | 538 | "No RX buffers complete, status = %02lx\n", |
540 | (unsigned long)status); | 539 | (unsigned long)status); |
541 | netif_rx_complete(napi); | 540 | napi_complete(napi); |
542 | goto out; | 541 | goto out; |
543 | } | 542 | } |
544 | 543 | ||
545 | work_done = macb_rx(bp, budget); | 544 | work_done = macb_rx(bp, budget); |
546 | if (work_done < budget) | 545 | if (work_done < budget) |
547 | netif_rx_complete(napi); | 546 | napi_complete(napi); |
548 | 547 | ||
549 | /* | 548 | /* |
550 | * We've done what we can to clean the buffers. Make sure we | 549 | * We've done what we can to clean the buffers. Make sure we |
@@ -579,7 +578,7 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id) | |||
579 | } | 578 | } |
580 | 579 | ||
581 | if (status & MACB_RX_INT_FLAGS) { | 580 | if (status & MACB_RX_INT_FLAGS) { |
582 | if (netif_rx_schedule_prep(&bp->napi)) { | 581 | if (napi_schedule_prep(&bp->napi)) { |
583 | /* | 582 | /* |
584 | * There's no point taking any more interrupts | 583 | * There's no point taking any more interrupts |
585 | * until we have processed the buffers | 584 | * until we have processed the buffers |
@@ -587,7 +586,7 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id) | |||
587 | macb_writel(bp, IDR, MACB_RX_INT_FLAGS); | 586 | macb_writel(bp, IDR, MACB_RX_INT_FLAGS); |
588 | dev_dbg(&bp->pdev->dev, | 587 | dev_dbg(&bp->pdev->dev, |
589 | "scheduling RX softirq\n"); | 588 | "scheduling RX softirq\n"); |
590 | __netif_rx_schedule(&bp->napi); | 589 | __napi_schedule(&bp->napi); |
591 | } | 590 | } |
592 | } | 591 | } |
593 | 592 | ||
@@ -1077,7 +1076,7 @@ static void macb_get_drvinfo(struct net_device *dev, | |||
1077 | 1076 | ||
1078 | strcpy(info->driver, bp->pdev->dev.driver->name); | 1077 | strcpy(info->driver, bp->pdev->dev.driver->name); |
1079 | strcpy(info->version, "$Revision: 1.14 $"); | 1078 | strcpy(info->version, "$Revision: 1.14 $"); |
1080 | strcpy(info->bus_info, bp->pdev->dev.bus_id); | 1079 | strcpy(info->bus_info, dev_name(&bp->pdev->dev)); |
1081 | } | 1080 | } |
1082 | 1081 | ||
1083 | static struct ethtool_ops macb_ethtool_ops = { | 1082 | static struct ethtool_ops macb_ethtool_ops = { |
@@ -1234,8 +1233,8 @@ static int __init macb_probe(struct platform_device *pdev) | |||
1234 | 1233 | ||
1235 | phydev = bp->phy_dev; | 1234 | phydev = bp->phy_dev; |
1236 | printk(KERN_INFO "%s: attached PHY driver [%s] " | 1235 | printk(KERN_INFO "%s: attached PHY driver [%s] " |
1237 | "(mii_bus:phy_addr=%s, irq=%d)\n", | 1236 | "(mii_bus:phy_addr=%s, irq=%d)\n", dev->name, |
1238 | dev->name, phydev->drv->name, phydev->dev.bus_id, phydev->irq); | 1237 | phydev->drv->name, dev_name(&phydev->dev), phydev->irq); |
1239 | 1238 | ||
1240 | return 0; | 1239 | return 0; |
1241 | 1240 | ||