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

PCI: faraday: 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 ftpci100 host bridge driver.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Linus Walleij <linus.walleij@linaro.org>

authored by

Lorenzo Pieralisi and committed by
Bjorn Helgaas
f7c2e69b 60eca198

+2 -1
+2 -1
drivers/pci/host/pci-ftpci100.c
··· 456 456 host->ops = &faraday_pci_ops; 457 457 host->busnr = 0; 458 458 host->msi = NULL; 459 + host->map_irq = of_irq_parse_and_map_pci; 460 + host->swizzle_irq = pci_common_swizzle; 459 461 p = pci_host_bridge_priv(host); 460 462 host->sysdata = p; 461 463 p->dev = dev; ··· 536 534 } 537 535 p->bus = host->bus; 538 536 539 - pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci); 540 537 pci_bus_assign_resources(p->bus); 541 538 pci_bus_add_devices(p->bus); 542 539 pci_free_resource_list(&res);