diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index e883b5fc3b08..6e19769b46d2 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -1725,12 +1725,14 @@ qla2x00_request_irqs(scsi_qla_host_t *ha) | |||
1725 | skip_msix: | 1725 | skip_msix: |
1726 | ret = request_irq(ha->pdev->irq, ha->isp_ops.intr_handler, | 1726 | ret = request_irq(ha->pdev->irq, ha->isp_ops.intr_handler, |
1727 | IRQF_DISABLED|IRQF_SHARED, QLA2XXX_DRIVER_NAME, ha); | 1727 | IRQF_DISABLED|IRQF_SHARED, QLA2XXX_DRIVER_NAME, ha); |
1728 | if (ret) { | 1728 | if (!ret) { |
1729 | ha->flags.inta_enabled = 1; | ||
1730 | ha->host->irq = ha->pdev->irq; | ||
1731 | } else { | ||
1729 | qla_printk(KERN_WARNING, ha, | 1732 | qla_printk(KERN_WARNING, ha, |
1730 | "Failed to reserve interrupt %d already in use.\n", | 1733 | "Failed to reserve interrupt %d already in use.\n", |
1731 | ha->pdev->irq); | 1734 | ha->pdev->irq); |
1732 | } | 1735 | } |
1733 | ha->host->irq = ha->pdev->irq; | ||
1734 | 1736 | ||
1735 | return ret; | 1737 | return ret; |
1736 | } | 1738 | } |
@@ -1741,6 +1743,6 @@ qla2x00_free_irqs(scsi_qla_host_t *ha) | |||
1741 | 1743 | ||
1742 | if (ha->flags.msix_enabled) | 1744 | if (ha->flags.msix_enabled) |
1743 | qla24xx_disable_msix(ha); | 1745 | qla24xx_disable_msix(ha); |
1744 | else if (ha->host->irq) | 1746 | else if (ha->flags.inta_enabled) |
1745 | free_irq(ha->host->irq, ha); | 1747 | free_irq(ha->host->irq, ha); |
1746 | } | 1748 | } |