Skip to content

Commit d3a11de

Browse files
committed
PCI/MSI: Use msi_domain_alloc/free_irqs_all_locked()
Switch to the new domain id aware interfaces to phase out the previous ones. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221124230314.455168748@linutronix.de
1 parent f2480e7 commit d3a11de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pci/msi/irqdomain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int pci_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
1414

1515
domain = dev_get_msi_domain(&dev->dev);
1616
if (domain && irq_domain_is_hierarchy(domain))
17-
return msi_domain_alloc_irqs_descs_locked(domain, &dev->dev, nvec);
17+
return msi_domain_alloc_irqs_all_locked(&dev->dev, MSI_DEFAULT_DOMAIN, nvec);
1818

1919
return pci_msi_legacy_setup_msi_irqs(dev, nvec, type);
2020
}
@@ -25,7 +25,7 @@ void pci_msi_teardown_msi_irqs(struct pci_dev *dev)
2525

2626
domain = dev_get_msi_domain(&dev->dev);
2727
if (domain && irq_domain_is_hierarchy(domain)) {
28-
msi_domain_free_irqs_descs_locked(domain, &dev->dev);
28+
msi_domain_free_irqs_all_locked(&dev->dev, MSI_DEFAULT_DOMAIN);
2929
} else {
3030
pci_msi_legacy_teardown_msi_irqs(dev);
3131
msi_free_msi_descs(&dev->dev);

0 commit comments

Comments
 (0)