Skip to content

Commit 3c46658

Browse files
committed
powerpc/cell/axon_msi: Convert to msi_on_each_desc()
Replace the about to vanish iterators and make use of the filtering. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 85dabc2 commit 3c46658

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

arch/powerpc/platforms/cell/axon_msi.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static int axon_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
262262
if (rc)
263263
return rc;
264264

265-
for_each_pci_msi_entry(entry, dev) {
265+
msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) {
266266
virq = irq_create_direct_mapping(msic->irq_domain);
267267
if (!virq) {
268268
dev_warn(&dev->dev,
@@ -285,10 +285,7 @@ static void axon_msi_teardown_msi_irqs(struct pci_dev *dev)
285285

286286
dev_dbg(&dev->dev, "axon_msi: tearing down msi irqs\n");
287287

288-
for_each_pci_msi_entry(entry, dev) {
289-
if (!entry->irq)
290-
continue;
291-
288+
msi_for_each_desc(entry, &dev->dev, MSI_DESC_ASSOCIATED) {
292289
irq_set_msi_desc(entry->irq, NULL);
293290
irq_dispose_mapping(entry->irq);
294291
}

0 commit comments

Comments
 (0)