aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-09-17 07:22:54 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-09-18 19:28:21 -0400
commit8885b7b637fa9aca7e1b00581a0173c6956966d3 (patch)
tree68511ba698f6837498a9ed0a18d312039cb89e5f /arch/tile
parent3ddbebf878ac8d958bb34e87a742a6b3adc283a3 (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/tile')
-rw-r--r--arch/tile/kernel/pci.c8
-rw-r--r--arch/tile/kernel/pci_gx.c8
2 files changed, 0 insertions, 16 deletions
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c
index 6245bba8b1d6..dbdab34f27cb 100644
--- a/arch/tile/kernel/pci.c
+++ b/arch/tile/kernel/pci.c
@@ -404,14 +404,6 @@ void pcibios_set_master(struct pci_dev *dev)
404} 404}
405 405
406/* 406/*
407 * This is called from the generic Linux layer.
408 */
409void pcibios_update_irq(struct pci_dev *dev, int irq)
410{
411 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
412}
413
414/*
415 * Enable memory and/or address decoding, as appropriate, for the 407 * Enable memory and/or address decoding, as appropriate, for the
416 * device described by the 'dev' struct. 408 * device described by the 'dev' struct.
417 * 409 *
diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c
index 5faad0b1bd21..2ba6d052f85d 100644
--- a/arch/tile/kernel/pci_gx.c
+++ b/arch/tile/kernel/pci_gx.c
@@ -1034,14 +1034,6 @@ char __devinit *pcibios_setup(char *str)
1034} 1034}
1035 1035
1036/* 1036/*
1037 * This is called from the generic Linux layer.
1038 */
1039void pcibios_update_irq(struct pci_dev *dev, int irq)
1040{
1041 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
1042}
1043
1044/*
1045 * Enable memory address decoding, as appropriate, for the 1037 * Enable memory address decoding, as appropriate, for the
1046 * device described by the 'dev' struct. The I/O decoding 1038 * device described by the 'dev' struct. The I/O decoding
1047 * is disabled, though the TILE-Gx supports I/O addressing. 1039 * is disabled, though the TILE-Gx supports I/O addressing.