diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2014-05-05 23:29:52 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-27 18:23:58 -0400 |
commit | a43ae58c848cfbadaba81c8d63202b4487f922a0 (patch) | |
tree | 142ac300293f2771444b91b6f077a0bfea622058 /arch/powerpc/include/asm/pci.h | |
parent | 78916b00f0096059c872f537306b1a464c84fb30 (diff) |
PCI: Turn pcibios_penalize_isa_irq() into a weak function
pcibios_penalize_isa_irq() is only implemented by x86 now, and legacy ISA
is not used by some architectures. Make pcibios_penalize_isa_irq() a
__weak function to simplify the code. This removes the need for new
platforms to add stub implementations of pcibios_penalize_isa_irq().
[bhelgaas: changelog, comments]
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/powerpc/include/asm/pci.h')
-rw-r--r-- | arch/powerpc/include/asm/pci.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/powerpc/include/asm/pci.h b/arch/powerpc/include/asm/pci.h index 95145a15c708..1b0739bc14b5 100644 --- a/arch/powerpc/include/asm/pci.h +++ b/arch/powerpc/include/asm/pci.h | |||
@@ -46,11 +46,6 @@ struct pci_dev; | |||
46 | #define pcibios_assign_all_busses() \ | 46 | #define pcibios_assign_all_busses() \ |
47 | (pci_has_flag(PCI_REASSIGN_ALL_BUS)) | 47 | (pci_has_flag(PCI_REASSIGN_ALL_BUS)) |
48 | 48 | ||
49 | static inline void pcibios_penalize_isa_irq(int irq, int active) | ||
50 | { | ||
51 | /* We don't do dynamic PCI IRQ allocation */ | ||
52 | } | ||
53 | |||
54 | #define HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ | 49 | #define HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ |
55 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | 50 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) |
56 | { | 51 | { |