Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tglx@linutronix.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211206210748.414712173@linutronix.de

+2 -5
+2 -5
arch/powerpc/platforms/cell/axon_msi.c
··· 262 262 if (rc) 263 263 return rc; 264 264 265 - for_each_pci_msi_entry(entry, dev) { 265 + msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) { 266 266 virq = irq_create_direct_mapping(msic->irq_domain); 267 267 if (!virq) { 268 268 dev_warn(&dev->dev, ··· 285 285 286 286 dev_dbg(&dev->dev, "axon_msi: tearing down msi irqs\n"); 287 287 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) { 292 289 irq_set_msi_desc(entry->irq, NULL); 293 290 irq_dispose_mapping(entry->irq); 294 291 }