diff options
Diffstat (limited to 'drivers/net/tlan.c')
| -rw-r--r-- | drivers/net/tlan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/tlan.c b/drivers/net/tlan.c index 9680a308c62b..942fae0f2130 100644 --- a/drivers/net/tlan.c +++ b/drivers/net/tlan.c | |||
| @@ -171,6 +171,7 @@ | |||
| 171 | #include <linux/ioport.h> | 171 | #include <linux/ioport.h> |
| 172 | #include <linux/eisa.h> | 172 | #include <linux/eisa.h> |
| 173 | #include <linux/pci.h> | 173 | #include <linux/pci.h> |
| 174 | #include <linux/dma-mapping.h> | ||
| 174 | #include <linux/netdevice.h> | 175 | #include <linux/netdevice.h> |
| 175 | #include <linux/etherdevice.h> | 176 | #include <linux/etherdevice.h> |
| 176 | #include <linux/delay.h> | 177 | #include <linux/delay.h> |
| @@ -566,7 +567,7 @@ static int __devinit TLan_probe1(struct pci_dev *pdev, | |||
| 566 | 567 | ||
| 567 | priv->adapter = &board_info[ent->driver_data]; | 568 | priv->adapter = &board_info[ent->driver_data]; |
| 568 | 569 | ||
| 569 | rc = pci_set_dma_mask(pdev, 0xFFFFFFFF); | 570 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
| 570 | if (rc) { | 571 | if (rc) { |
| 571 | printk(KERN_ERR "TLAN: No suitable PCI mapping available.\n"); | 572 | printk(KERN_ERR "TLAN: No suitable PCI mapping available.\n"); |
| 572 | goto err_out_free_dev; | 573 | goto err_out_free_dev; |
| @@ -2819,7 +2820,7 @@ void TLan_PhyMonitor( struct net_device *dev ) | |||
| 2819 | if (priv->link) { | 2820 | if (priv->link) { |
| 2820 | priv->link = 0; | 2821 | priv->link = 0; |
| 2821 | printk(KERN_DEBUG "TLAN: %s has lost link\n", dev->name); | 2822 | printk(KERN_DEBUG "TLAN: %s has lost link\n", dev->name); |
| 2822 | dev->flags &= ~IFF_RUNNING; | 2823 | netif_carrier_off(dev); |
| 2823 | TLan_SetTimer( dev, (2*HZ), TLAN_TIMER_LINK_BEAT ); | 2824 | TLan_SetTimer( dev, (2*HZ), TLAN_TIMER_LINK_BEAT ); |
| 2824 | return; | 2825 | return; |
| 2825 | } | 2826 | } |
| @@ -2829,7 +2830,7 @@ void TLan_PhyMonitor( struct net_device *dev ) | |||
| 2829 | if ((phy_status & MII_GS_LINK) && !priv->link) { | 2830 | if ((phy_status & MII_GS_LINK) && !priv->link) { |
| 2830 | priv->link = 1; | 2831 | priv->link = 1; |
| 2831 | printk(KERN_DEBUG "TLAN: %s has reestablished link\n", dev->name); | 2832 | printk(KERN_DEBUG "TLAN: %s has reestablished link\n", dev->name); |
| 2832 | dev->flags |= IFF_RUNNING; | 2833 | netif_carrier_on(dev); |
| 2833 | } | 2834 | } |
| 2834 | 2835 | ||
| 2835 | /* Setup a new monitor */ | 2836 | /* Setup a new monitor */ |
