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

PCI: generic: Drop pci_fixup_irqs()

Since, through struct pci_host_bridge.map/swizzle_irq hooks, IRQs are now
allocated in the pci_assign_irq() callback automatically, PCI host bridge
drivers can stop relying on pci_fixup_irqs() for IRQ allocation.

Drop pci_fixup_irqs() usage from PCI host-common bridge driver.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Will Deacon <will.deacon@arm.com>

authored by

Lorenzo Pieralisi and committed by
Bjorn Helgaas
6982a068 f7c2e69b

+2 -4
+2 -4
drivers/pci/host/pci-host-common.c
··· 149 149 bridge->sysdata = cfg; 150 150 bridge->busnr = cfg->busr.start; 151 151 bridge->ops = &ops->pci_ops; 152 + bridge->map_irq = of_irq_parse_and_map_pci; 153 + bridge->swizzle_irq = pci_common_swizzle; 152 154 153 155 ret = pci_scan_root_bus_bridge(bridge); 154 156 if (ret < 0) { ··· 159 157 } 160 158 161 159 bus = bridge->bus; 162 - 163 - #ifdef CONFIG_ARM 164 - pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci); 165 - #endif 166 160 167 161 /* 168 162 * We insert PCI resources into the iomem_resource and