Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=665db93b8a5fc6a11e2ace6b20569420a353d037
Commit:     665db93b8a5fc6a11e2ace6b20569420a353d037
Parent:     4dfb7cbef856689caebd0f498dbd140d1b79954f
Author:     Bernhard Walle <[EMAIL PROTECTED]>
AuthorDate: Wed Mar 28 00:49:49 2007 +0200
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Sun Apr 1 10:27:29 2007 -0500

    [SCSI] qla2xxx: Remove duplicate pci_disable_device() call
    
    On the path qla2x00_probe_one() -> probe_failed -> qla2x00_free_device(),
    pci_disable_device() is executed twice, once in qla2x00_free_device()
    and once in qla2x00_probe_one().
    
    This patch removes the unnecessary call.
    
    Signed-off-by: Bernhard Walle <[EMAIL PROTECTED]>
    Acked-by: Andrew Vasquez <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/qla2xxx/qla_os.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index b6c96a8..b78919a 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -1707,6 +1707,7 @@ qla2x00_remove_one(struct pci_dev *pdev)
 
        scsi_host_put(ha->host);
 
+       pci_disable_device(pdev);
        pci_set_drvdata(pdev, NULL);
 }
 
@@ -1749,8 +1750,6 @@ qla2x00_free_device(scsi_qla_host_t *ha)
        if (ha->iobase)
                iounmap(ha->iobase);
        pci_release_regions(ha->pdev);
-
-       pci_disable_device(ha->pdev);
 }
 
 static inline void
-
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