diff options
Diffstat (limited to 'drivers/net/tc35815.c')
-rw-r--r-- | drivers/net/tc35815.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index bcd0e60cbda9..b52a1c088f37 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c | |||
@@ -725,7 +725,7 @@ static int tc_mii_probe(struct net_device *dev) | |||
725 | } | 725 | } |
726 | 726 | ||
727 | /* attach the mac to the phy */ | 727 | /* attach the mac to the phy */ |
728 | phydev = phy_connect(dev, phydev->dev.bus_id, | 728 | phydev = phy_connect(dev, dev_name(&phydev->dev), |
729 | &tc_handle_link_change, 0, | 729 | &tc_handle_link_change, 0, |
730 | lp->chiptype == TC35815_TX4939 ? | 730 | lp->chiptype == TC35815_TX4939 ? |
731 | PHY_INTERFACE_MODE_RMII : PHY_INTERFACE_MODE_MII); | 731 | PHY_INTERFACE_MODE_RMII : PHY_INTERFACE_MODE_MII); |
@@ -735,7 +735,7 @@ static int tc_mii_probe(struct net_device *dev) | |||
735 | } | 735 | } |
736 | printk(KERN_INFO "%s: attached PHY driver [%s] " | 736 | printk(KERN_INFO "%s: attached PHY driver [%s] " |
737 | "(mii_bus:phy_addr=%s, id=%x)\n", | 737 | "(mii_bus:phy_addr=%s, id=%x)\n", |
738 | dev->name, phydev->drv->name, phydev->dev.bus_id, | 738 | dev->name, phydev->drv->name, dev_name(&phydev->dev), |
739 | phydev->phy_id); | 739 | phydev->phy_id); |
740 | 740 | ||
741 | /* mask with MAC supported features */ | 741 | /* mask with MAC supported features */ |
@@ -1609,8 +1609,8 @@ static irqreturn_t tc35815_interrupt(int irq, void *dev_id) | |||
1609 | if (!(dmactl & DMA_IntMask)) { | 1609 | if (!(dmactl & DMA_IntMask)) { |
1610 | /* disable interrupts */ | 1610 | /* disable interrupts */ |
1611 | tc_writel(dmactl | DMA_IntMask, &tr->DMA_Ctl); | 1611 | tc_writel(dmactl | DMA_IntMask, &tr->DMA_Ctl); |
1612 | if (netif_rx_schedule_prep(&lp->napi)) | 1612 | if (napi_schedule_prep(&lp->napi)) |
1613 | __netif_rx_schedule(&lp->napi); | 1613 | __napi_schedule(&lp->napi); |
1614 | else { | 1614 | else { |
1615 | printk(KERN_ERR "%s: interrupt taken in poll\n", | 1615 | printk(KERN_ERR "%s: interrupt taken in poll\n", |
1616 | dev->name); | 1616 | dev->name); |
@@ -1919,7 +1919,7 @@ static int tc35815_poll(struct napi_struct *napi, int budget) | |||
1919 | spin_unlock(&lp->lock); | 1919 | spin_unlock(&lp->lock); |
1920 | 1920 | ||
1921 | if (received < budget) { | 1921 | if (received < budget) { |
1922 | netif_rx_complete(napi); | 1922 | napi_complete(napi); |
1923 | /* enable interrupts */ | 1923 | /* enable interrupts */ |
1924 | tc_writel(tc_readl(&tr->DMA_Ctl) & ~DMA_IntMask, &tr->DMA_Ctl); | 1924 | tc_writel(tc_readl(&tr->DMA_Ctl) & ~DMA_IntMask, &tr->DMA_Ctl); |
1925 | } | 1925 | } |