aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tlan.c
diff options
context:
space:
mode:
author <tgraf@suug.ch>2005-05-12 19:45:25 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-05-12 19:45:25 -0400
commit7d17c1d606f6e89778f05554ddea43791d5c92a0 (patch)
treea81b20746b27d8fb0211b9a3cb4a20a4a0d3df08 /drivers/net/tlan.c
parent88d7bd8cb9eb8d64bf7997600b0d64f7834047c5 (diff)
[netdrvrs] Use netif_carrier_* instead of IFF_RUNNING
Diffstat (limited to 'drivers/net/tlan.c')
-rw-r--r--drivers/net/tlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tlan.c b/drivers/net/tlan.c
index a7ffa64502dd..ce116624f136 100644
--- a/drivers/net/tlan.c
+++ b/drivers/net/tlan.c
@@ -2807,7 +2807,7 @@ void TLan_PhyMonitor( struct net_device *dev )
2807 if (priv->link) { 2807 if (priv->link) {
2808 priv->link = 0; 2808 priv->link = 0;
2809 printk(KERN_DEBUG "TLAN: %s has lost link\n", dev->name); 2809 printk(KERN_DEBUG "TLAN: %s has lost link\n", dev->name);
2810 dev->flags &= ~IFF_RUNNING; 2810 netif_carrier_off(dev);
2811 TLan_SetTimer( dev, (2*HZ), TLAN_TIMER_LINK_BEAT ); 2811 TLan_SetTimer( dev, (2*HZ), TLAN_TIMER_LINK_BEAT );
2812 return; 2812 return;
2813 } 2813 }
@@ -2817,7 +2817,7 @@ void TLan_PhyMonitor( struct net_device *dev )
2817 if ((phy_status & MII_GS_LINK) && !priv->link) { 2817 if ((phy_status & MII_GS_LINK) && !priv->link) {
2818 priv->link = 1; 2818 priv->link = 1;
2819 printk(KERN_DEBUG "TLAN: %s has reestablished link\n", dev->name); 2819 printk(KERN_DEBUG "TLAN: %s has reestablished link\n", dev->name);
2820 dev->flags |= IFF_RUNNING; 2820 netif_carrier_on(dev);
2821 } 2821 }
2822 2822
2823 /* Setup a new monitor */ 2823 /* Setup a new monitor */