[patch 3/5] pcmcia: i82092: fix checking of return value from
request_region
Dominik Brodowski
linux at dominikbrodowski.de
Wed Jan 19 17:12:34 EST 2005
From: Randy Dunlap <rddunlap at osdl.org>
i82092: check return value from request_region() correctly;
apparently unused for awhile now;
Signed-off-by: Randy Dunlap <rddunlap at osdl.org>
Signed-off-by: Dominik Brodowski <linux at brodo.de>
---
drivers/pcmcia/i82092.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: 2.6.11-rc1+/drivers/pcmcia/i82092.c
===================================================================
--- 2.6.11-rc1+.orig/drivers/pcmcia/i82092.c 2005-01-16 20:06:46.000000000 +0100
+++ 2.6.11-rc1+/drivers/pcmcia/i82092.c 2005-01-18 19:09:09.000000000 +0100
@@ -122,7 +122,7 @@
}
printk(KERN_INFO "i82092aa: configured as a %d socket device.\n", socket_count);
- if (request_region(pci_resource_start(dev, 0), 2, "i82092aa")) {
+ if (!request_region(pci_resource_start(dev, 0), 2, "i82092aa")) {
ret = -EBUSY;
goto err_out_disable;
}
More information about the linux-pcmcia
mailing list