int iobase; 
static int smsc_ircc_net_open(struct net_device *dev){	struct smsc_ircc_cb *self;	int iobase;	char hwname[16];	unsigned long flags;	IRDA_DEBUG(1, "%s\n", __FUNCTION__);	IRDA_ASSERT(dev != NULL, return -1;);	self = (struct smsc_ircc_cb *) dev->priv;	IRDA_ASSERT(self != NULL, return 0;);	iobase = self->io.fir_base;	if (request_irq(self->io.irq, smsc_ircc_interrupt, 0, dev->name,			(void *) dev)) {		IRDA_DEBUG(0, "%s(), unable to allocate irq=%d\n",			   __FUNCTION__, self->io.irq);		return -EAGAIN;	}	spin_lock_irqsave(&self->lock, flags);	/*smsc_ircc_sir_start(self);*/	self->io.speed = 0;	smsc_ircc_change_speed(self, SMSC_IRCC2_C_IRDA_FALLBACK_SPEED);	spin_unlock_irqrestore(&self->lock, flags);	/* Give self a hardware name */	/* It would be cool to offer the chip revision here - Jean II */	sprintf(hwname, "SMSC @ 0x%03x", self->io.fir_base);	/*	 * Open new IrLAP layer instance, now that everything should be	 * initialized properly	 */	self->irlap = irlap_open(dev, &self->qos, hwname);	/*	 * Always allocate the DMA channel after the IRQ,	 * and clean up on failure.	 */	if (request_dma(self->io.dma, dev->name)) {		smsc_ircc_net_close(dev);		IRDA_WARNING("%s(), unable to allocate DMA=%d\n",			     __FUNCTION__, self->io.dma);		return -EAGAIN;	}	netif_start_queue(dev);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/80a9058924d66643b645dbf5ad92acdac6d1d134/smsc-ircc2.c/clean/drivers/net/irda/smsc-ircc2.c