diff options
author | Matthew Minter <matt@masarand.com> | 2017-07-31 12:37:57 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-03 17:31:28 -0400 |
commit | 004cb784018eaa2a078912180bd9999707c3c483 (patch) | |
tree | 8366ec3b5349e6d59a0999dc819034d21a00ebd3 /drivers/pci | |
parent | b483e3c19b2796cbdfbef218478762f2d948e899 (diff) |
PCI: Remove unused pci_fixup_irqs() function
Now we have removed all callers of pci_fixup_irqs() and migrated everything
to pci_assign_irq(), delete the pci_fixup_irqs() function completely.
Signed-off-by: Matthew Minter <matt@masarand.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/setup-irq.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/pci/setup-irq.c b/drivers/pci/setup-irq.c index 81eda3d93a5d..69e3b56c32a4 100644 --- a/drivers/pci/setup-irq.c +++ b/drivers/pci/setup-irq.c | |||
@@ -67,27 +67,3 @@ void pci_assign_irq(struct pci_dev *dev) | |||
67 | the real IRQ to use; the device does not use it. */ | 67 | the real IRQ to use; the device does not use it. */ |
68 | pcibios_update_irq(dev, irq); | 68 | pcibios_update_irq(dev, irq); |
69 | } | 69 | } |
70 | |||
71 | void pci_fixup_irqs(u8 (*swizzle)(struct pci_dev *, u8 *), | ||
72 | int (*map_irq)(const struct pci_dev *, u8, u8)) | ||
73 | { | ||
74 | /* | ||
75 | * Implement pci_fixup_irqs() through pci_assign_irq(). | ||
76 | * This code should be remove eventually, it is a wrapper | ||
77 | * around pci_assign_irq() interface to keep current | ||
78 | * pci_fixup_irqs() behaviour unchanged on architecture | ||
79 | * code still relying on its interface. | ||
80 | */ | ||
81 | struct pci_dev *dev = NULL; | ||
82 | struct pci_host_bridge *hbrg = NULL; | ||
83 | |||
84 | for_each_pci_dev(dev) { | ||
85 | hbrg = pci_find_host_bridge(dev->bus); | ||
86 | hbrg->swizzle_irq = swizzle; | ||
87 | hbrg->map_irq = map_irq; | ||
88 | pci_assign_irq(dev); | ||
89 | hbrg->swizzle_irq = NULL; | ||
90 | hbrg->map_irq = NULL; | ||
91 | } | ||
92 | } | ||
93 | EXPORT_SYMBOL_GPL(pci_fixup_irqs); | ||