diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2012-09-17 07:22:54 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-18 19:28:21 -0400 |
commit | 8885b7b637fa9aca7e1b00581a0173c6956966d3 (patch) | |
tree | 68511ba698f6837498a9ed0a18d312039cb89e5f /arch/unicore32/kernel | |
parent | 3ddbebf878ac8d958bb34e87a742a6b3adc283a3 (diff) |
PCI: Provide a default pcibios_update_irq()
Most architectures implement this in exactly the same way. Instead of
having each architecture duplicate this function, provide a single
implementation in the core and make it a weak symbol so that it can be
overridden on architectures where it is required.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/unicore32/kernel')
-rw-r--r-- | arch/unicore32/kernel/pci.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/unicore32/kernel/pci.c b/arch/unicore32/kernel/pci.c index c07ecc5baff6..b0056f68d321 100644 --- a/arch/unicore32/kernel/pci.c +++ b/arch/unicore32/kernel/pci.c | |||
@@ -154,14 +154,6 @@ void __init puv3_pci_adjust_zones(unsigned long *zone_size, | |||
154 | zhole_size[0] = 0; | 154 | zhole_size[0] = 0; |
155 | } | 155 | } |
156 | 156 | ||
157 | void pcibios_update_irq(struct pci_dev *dev, int irq) | ||
158 | { | ||
159 | if (debug_pci) | ||
160 | printk(KERN_DEBUG "PCI: Assigning IRQ %02d to %s\n", | ||
161 | irq, pci_name(dev)); | ||
162 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
163 | } | ||
164 | |||
165 | /* | 157 | /* |
166 | * If the bus contains any of these devices, then we must not turn on | 158 | * If the bus contains any of these devices, then we must not turn on |
167 | * parity checking of any kind. | 159 | * parity checking of any kind. |