Commit c0e742d4 authored by Dominik Brodowski's avatar Dominik Brodowski Committed by Linus Torvalds

[PATCH] pcmcia: i82092: fix checking of return value from request_region

From: Randy Dunlap <rddunlap@osdl.org>

i82092: check return value from request_region() correctly;
apparently unused for awhile now;
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bcdf7ed3
...@@ -122,7 +122,7 @@ static int __devinit i82092aa_pci_probe(struct pci_dev *dev, const struct pci_de ...@@ -122,7 +122,7 @@ static int __devinit i82092aa_pci_probe(struct pci_dev *dev, const struct pci_de
} }
printk(KERN_INFO "i82092aa: configured as a %d socket device.\n", socket_count); 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; ret = -EBUSY;
goto err_out_disable; goto err_out_disable;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment