patch-2.4.19 linux-2.4.19/drivers/net/irda/ali-ircc.c

Next file: linux-2.4.19/drivers/net/irda/au1k_ir.c
Previous file: linux-2.4.19/drivers/net/irda/Makefile
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/net/irda/ali-ircc.c linux-2.4.19/drivers/net/irda/ali-ircc.c
@@ -291,15 +291,13 @@
         self->io.fifo_size = 16;		/* SIR: 16, FIR: 32 Benjamin 2000/11/1 */
 	
 	/* Reserve the ioports that we need */
-	ret = check_region(self->io.fir_base, self->io.fir_ext);
-	if (ret < 0) { 
+	if (!request_region(self->io.fir_base, self->io.fir_ext, driver_name)) {
 		WARNING(__FUNCTION__ "(), can't get iobase of 0x%03x\n",
 			self->io.fir_base);
 		dev_self[i] = NULL;
 		kfree(self);
 		return -ENODEV;
 	}
-	request_region(self->io.fir_base, self->io.fir_ext, driver_name);
 
 	/* Initialize QoS for this device */
 	irda_init_max_qos_capabilies(&self->qos);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)