Commit 03555d59 authored by Scott Murray's avatar Scott Murray Committed by Greg Kroah-Hartman

PCI: ZT5550 CPCI Hotplug driver fix

cc: Philip Guo <pg@cs.stanford.edu>

Here's a small patch against the current git tree for the ZT5550 CPCI 
hotplug driver to fix an issue with port freeing that Philip Guo found.
Signed-off-by: default avatarScott Murray <scottm@somanetworks.com>
Signed-off-by: default avatarKristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ac1f0e99
...@@ -296,13 +296,17 @@ static struct pci_driver zt5550_hc_driver = { ...@@ -296,13 +296,17 @@ static struct pci_driver zt5550_hc_driver = {
static int __init zt5550_init(void) static int __init zt5550_init(void)
{ {
struct resource* r; struct resource* r;
int rc;
info(DRIVER_DESC " version: " DRIVER_VERSION); info(DRIVER_DESC " version: " DRIVER_VERSION);
r = request_region(ENUM_PORT, 1, "#ENUM hotswap signal register"); r = request_region(ENUM_PORT, 1, "#ENUM hotswap signal register");
if(!r) if(!r)
return -EBUSY; return -EBUSY;
return pci_register_driver(&zt5550_hc_driver); rc = pci_register_driver(&zt5550_hc_driver);
if(rc < 0)
release_region(ENUM_PORT, 1);
return rc;
} }
static void __exit static void __exit
......
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