diff options
Diffstat (limited to 'drivers/net/r6040.c')
-rw-r--r-- | drivers/net/r6040.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 5d86281d9363..34fe7ef8e5ed 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c | |||
@@ -265,7 +265,7 @@ static void r6040_free_txbufs(struct net_device *dev) | |||
265 | le32_to_cpu(lp->tx_insert_ptr->buf), | 265 | le32_to_cpu(lp->tx_insert_ptr->buf), |
266 | MAX_BUF_SIZE, PCI_DMA_TODEVICE); | 266 | MAX_BUF_SIZE, PCI_DMA_TODEVICE); |
267 | dev_kfree_skb(lp->tx_insert_ptr->skb_ptr); | 267 | dev_kfree_skb(lp->tx_insert_ptr->skb_ptr); |
268 | lp->rx_insert_ptr->skb_ptr = NULL; | 268 | lp->tx_insert_ptr->skb_ptr = NULL; |
269 | } | 269 | } |
270 | lp->tx_insert_ptr = lp->tx_insert_ptr->vndescp; | 270 | lp->tx_insert_ptr = lp->tx_insert_ptr->vndescp; |
271 | } | 271 | } |
@@ -370,7 +370,7 @@ static void r6040_init_mac_regs(struct net_device *dev) | |||
370 | /* Reset internal state machine */ | 370 | /* Reset internal state machine */ |
371 | iowrite16(2, ioaddr + MAC_SM); | 371 | iowrite16(2, ioaddr + MAC_SM); |
372 | iowrite16(0, ioaddr + MAC_SM); | 372 | iowrite16(0, ioaddr + MAC_SM); |
373 | udelay(5000); | 373 | mdelay(5); |
374 | 374 | ||
375 | /* MAC Bus Control Register */ | 375 | /* MAC Bus Control Register */ |
376 | iowrite16(MBCR_DEFAULT, ioaddr + MBCR); | 376 | iowrite16(MBCR_DEFAULT, ioaddr + MBCR); |
@@ -806,7 +806,7 @@ static void r6040_mac_address(struct net_device *dev) | |||
806 | iowrite16(0x01, ioaddr + MCR1); /* Reset MAC */ | 806 | iowrite16(0x01, ioaddr + MCR1); /* Reset MAC */ |
807 | iowrite16(2, ioaddr + MAC_SM); /* Reset internal state machine */ | 807 | iowrite16(2, ioaddr + MAC_SM); /* Reset internal state machine */ |
808 | iowrite16(0, ioaddr + MAC_SM); | 808 | iowrite16(0, ioaddr + MAC_SM); |
809 | udelay(5000); | 809 | mdelay(5); |
810 | 810 | ||
811 | /* Restore MAC Address */ | 811 | /* Restore MAC Address */ |
812 | adrp = (u16 *) dev->dev_addr; | 812 | adrp = (u16 *) dev->dev_addr; |