IPW_DEBUG_ERROR( 
printk(KERN_ERR DRV_NAME ": " 
static int ipw2100_up(struct ipw2100_priv *priv, int deferred){	unsigned long flags;	int rc = 0;	u32 lock;	u32 ord_len = sizeof(lock);	/* Quite if manually disabled. */	if (priv->status & STATUS_RF_KILL_SW) {		IPW_DEBUG_INFO("%s: Radio is disabled by Manual Disable "			       "switch\n", priv->net_dev->name);		return 0;	}	/* If the interrupt is enabled, turn it off... */	spin_lock_irqsave(&priv->low_lock, flags);	ipw2100_disable_interrupts(priv);	/* Reset any fatal_error conditions */	ipw2100_reset_fatalerror(priv);	spin_unlock_irqrestore(&priv->low_lock, flags);	if (priv->status & STATUS_POWERED ||	    (priv->status & STATUS_RESET_PENDING)) {		/* Power cycle the card ... */		if (ipw2100_power_cycle_adapter(priv)) {			IPW_DEBUG_WARNING("%s: Could not cycle adapter.\n",					  priv->net_dev->name);			rc = 1;			goto exit;		}	} else		priv->status |= STATUS_POWERED;	/* Load the firmware, start the clocks, etc. */	if (ipw2100_start_adapter(priv)) {	       	IPW_DEBUG_ERROR("%s: Failed to start the firmware.\n",				priv->net_dev->name);		rc = 1;		goto exit;	}	ipw2100_initialize_ordinals(priv);	/* Determine capabilities of this particular HW configuration */	if (ipw2100_get_hw_features(priv)) {		IPW_DEBUG_ERROR("%s: Failed to determine HW features.\n",				priv->net_dev->name);		rc = 1;		goto exit;	}	lock = LOCK_NONE;	if (ipw2100_set_ordinal(priv, IPW_ORD_PERS_DB_LOCK, &lock, &ord_len)) {		IPW_DEBUG_ERROR("%s: Failed to clear ordinal lock.\n",				priv->net_dev->name);		rc = 1;		goto exit;	}	priv->status &= ~STATUS_SCANNING;	if (rf_kill_active(priv)) {		printk(KERN_INFO "%s: Radio is disabled by RF switch.\n",		       priv->net_dev->name);		if (priv->stop_rf_kill) {			priv->stop_rf_kill = 0;			queue_delayed_work(priv->workqueue, &priv->rf_kill, HZ);		}		deferred = 1;	}	/* Turn on the interrupt so that commands can be processed */	ipw2100_enable_interrupts(priv);	/* Send all of the commands that must be sent prior to	 * HOST_COMPLETE */	if (ipw2100_adapter_setup(priv)) {		IPW_DEBUG_ERROR("%s: Failed to start the card.\n",				priv->net_dev->name);		rc = 1;		goto exit;	}	if (!deferred) {		/* Enable the adapter - sends HOST_COMPLETE */		if (ipw2100_enable_adapter(priv)) {			IPW_DEBUG_ERROR(				"%s: failed in call to enable adapter.\n",				priv->net_dev->name);			ipw2100_hw_stop_adapter(priv);			rc = 1;			goto exit;		}		/* Start a scan . . . */		ipw2100_set_scan_options(priv);		ipw2100_start_scan(priv);	} exit:	return rc;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/797b4f7652a4dcf06bdf6a8c870991acdf56c03d/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c