patch-2.4.19 linux-2.4.19/drivers/net/wan/comx-hw-locomx.c

Next file: linux-2.4.19/drivers/net/wan/comx-hw-munich.c
Previous file: linux-2.4.19/drivers/net/wan/Makefile
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/net/wan/comx-hw-locomx.c linux-2.4.19/drivers/net/wan/comx-hw-locomx.c
@@ -154,12 +154,10 @@
 		return -ENODEV;
 	}
 
-	if (check_region(dev->base_addr, hw->io_extent)) {
+	if (!request_region(dev->base_addr, hw->io_extent, dev->name)) {
 		return -EAGAIN;
 	}
 
-	request_region(dev->base_addr, hw->io_extent, dev->name);
-
 	hw->board.chanA.ctrlio=dev->base_addr + 5;
 	hw->board.chanA.dataio=dev->base_addr + 7;
 	

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