Skip to content

Commit 529ed2d

Browse files
damien-lemoalbjorn-helgaas
authored andcommitted
scsi: megaraid_sas: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
Use the macro PCI_IRQ_INTX instead of the deprecated PCI_IRQ_LEGACY macro. Link: https://lore.kernel.org/r/20240325070944.3600338-25-dlemoal@kernel.org Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 67908f6 commit 529ed2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/scsi/megaraid/megaraid_sas_base.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6300,7 +6300,7 @@ static int megasas_init_fw(struct megasas_instance *instance)
63006300
}
63016301

63026302
if (!instance->msix_vectors) {
6303-
i = pci_alloc_irq_vectors(instance->pdev, 1, 1, PCI_IRQ_LEGACY);
6303+
i = pci_alloc_irq_vectors(instance->pdev, 1, 1, PCI_IRQ_INTX);
63046304
if (i < 0)
63056305
goto fail_init_adapter;
63066306
}
@@ -7839,7 +7839,7 @@ megasas_resume(struct device *dev)
78397839

78407840
if (!instance->msix_vectors) {
78417841
rval = pci_alloc_irq_vectors(instance->pdev, 1, 1,
7842-
PCI_IRQ_LEGACY);
7842+
PCI_IRQ_INTX);
78437843
if (rval < 0)
78447844
goto fail_reenable_msix;
78457845
}

0 commit comments

Comments
 (0)