patch-2.4.0-test3 linux/drivers/net/wan/hostess_sv11.c

Next file: linux/drivers/net/wan/lmc/lmc_main.c
Previous file: linux/drivers/net/wan/cosa.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/net/wan/hostess_sv11.c linux/drivers/net/wan/hostess_sv11.c
@@ -222,19 +222,17 @@
 {
 	struct z8530_dev *dev;
 	struct sv11_device *sv;
-	int i;
 	unsigned long flags;
 	
 	/*
 	 *	Get the needed I/O space
 	 */
 	 
-	if(check_region(iobase, 8))
+	if(!request_region(iobase, 8, "Comtrol SV11"))
 	{	
 		printk(KERN_WARNING "hostess: I/O 0x%X already in use.\n", iobase);
 		return NULL;
 	}
-	request_region(iobase, 8, "Comtrol SV11");
 	
 	sv=(struct sv11_device *)kmalloc(sizeof(struct sv11_device), GFP_KERNEL);
 	if(!sv)

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