diff options
Diffstat (limited to 'drivers/pci/setup-irq.c')
-rw-r--r-- | drivers/pci/setup-irq.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/drivers/pci/setup-irq.c b/drivers/pci/setup-irq.c index 81eda3d93a5d..86106c44ce94 100644 --- a/drivers/pci/setup-irq.c +++ b/drivers/pci/setup-irq.c | |||
@@ -17,12 +17,6 @@ | |||
17 | #include <linux/cache.h> | 17 | #include <linux/cache.h> |
18 | #include "pci.h" | 18 | #include "pci.h" |
19 | 19 | ||
20 | void __weak pcibios_update_irq(struct pci_dev *dev, int irq) | ||
21 | { | ||
22 | dev_dbg(&dev->dev, "assigning IRQ %02d\n", irq); | ||
23 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
24 | } | ||
25 | |||
26 | void pci_assign_irq(struct pci_dev *dev) | 20 | void pci_assign_irq(struct pci_dev *dev) |
27 | { | 21 | { |
28 | u8 pin; | 22 | u8 pin; |
@@ -65,29 +59,5 @@ void pci_assign_irq(struct pci_dev *dev) | |||
65 | 59 | ||
66 | /* Always tell the device, so the driver knows what is | 60 | /* Always tell the device, so the driver knows what is |
67 | the real IRQ to use; the device does not use it. */ | 61 | the real IRQ to use; the device does not use it. */ |
68 | pcibios_update_irq(dev, irq); | 62 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); |
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 | } | 63 | } |
93 | EXPORT_SYMBOL_GPL(pci_fixup_irqs); | ||