netif_carrier_off(dev); 
netif_carrier_off(dev); 
static void sbmac_timer(unsigned long data){	struct net_device *dev = (struct net_device *)data;	struct sbmac_softc *sc = netdev_priv(dev);	int next_tick = HZ;	int mii_status;	spin_lock_irq (&sc->sbm_lock);		/* make IFF_RUNNING follow the MII status bit "Link established" */	mii_status = sbmac_mii_read(sc, sc->sbm_phys[0], MII_BMSR);		if ( (mii_status & BMSR_LINKSTAT) != (sc->sbm_phy_oldlinkstat) ) {    	        sc->sbm_phy_oldlinkstat = mii_status & BMSR_LINKSTAT;		if (mii_status & BMSR_LINKSTAT) {			netif_carrier_on(dev);		}		else {			netif_carrier_off(dev);			}	}		/*	 * Poll the PHY to see what speed we should be running at	 */	if (sbmac_mii_poll(sc,noisy_mii)) {		if (sc->sbm_state != sbmac_state_off) {			/*			 * something changed, restart the channel			 */			if (debug > 1) {				printk("%s: restarting channel because speed changed\n",				       sc->sbm_dev->name);			}			sbmac_channel_stop(sc);			sbmac_channel_start(sc);		}	}		spin_unlock_irq (&sc->sbm_lock);		sc->sbm_timer.expires = jiffies + next_tick;	add_timer(&sc->sbm_timer);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/74b0247fbd4b6ed1693a420d85cf50267d840ef4/sb1250-mac.c/buggy/drivers/net/sb1250-mac.c