patch-2.3.99-pre7 linux/drivers/net/aironet4500_card.c

Next file: linux/drivers/net/appletalk/cops.c
Previous file: linux/drivers/net/ac3200.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/aironet4500_card.c linux/drivers/net/aironet4500_card.c
@@ -121,7 +121,8 @@
 //				printk(KERN_ERR "aironet4X00 mem addrs not available for maping \n");
 //				continue;
 //		}
-		request_region(pci_ioaddr, AIRONET4X00_IO_SIZE, "aironet4x00 ioaddr");
+		if (!request_region(pci_ioaddr, AIRONET4X00_IO_SIZE, "aironet4x00 ioaddr"))
+			continue;
 //		request_region(pci_cisaddr, AIRONET4X00_CIS_SIZE, "aironet4x00 cis");
 //		request_region(pci_memaddr, AIRONET4X00_MEM_SIZE, "aironet4x00 mem");
 
@@ -998,4 +999,4 @@
 #endif
 
 }
-#endif
\ No newline at end of file
+#endif

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