Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=03555d591d2c8ee9291db171c0d21d3c9cab04d9
Commit:     03555d591d2c8ee9291db171c0d21d3c9cab04d9
Parent:     ac1f0e9923356652f21756526e194a4a1a37dd38
Author:     Scott Murray <[EMAIL PROTECTED]>
AuthorDate: Fri Apr 13 15:34:26 2007 -0700
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed May 2 19:02:40 2007 -0700

    PCI: ZT5550 CPCI Hotplug driver fix
    
    cc: Philip Guo <[EMAIL PROTECTED]>
    
    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: Scott Murray <[EMAIL PROTECTED]>
    Signed-off-by: Kristen Carlson Accardi <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/pci/hotplug/cpcihp_zt5550.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/hotplug/cpcihp_zt5550.c 
b/drivers/pci/hotplug/cpcihp_zt5550.c
index 1c12e91..41f6a8d 100644
--- a/drivers/pci/hotplug/cpcihp_zt5550.c
+++ b/drivers/pci/hotplug/cpcihp_zt5550.c
@@ -296,13 +296,17 @@ static struct pci_driver zt5550_hc_driver = {
 static int __init zt5550_init(void)
 {
        struct resource* r;
+       int rc;
 
        info(DRIVER_DESC " version: " DRIVER_VERSION);
        r = request_region(ENUM_PORT, 1, "#ENUM hotswap signal register");
        if(!r)
                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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to