Skip to content

Commit a43ae58

Browse files
Hanjun Guobjorn-helgaas
authored andcommitted
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>
1 parent 78916b0 commit a43ae58

21 files changed

Lines changed: 12 additions & 79 deletions

File tree

‎arch/alpha/include/asm/pci.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ struct pci_controller {
5959

6060
extern void pcibios_set_master(struct pci_dev *dev);
6161

62-
extern inline void pcibios_penalize_isa_irq(int irq, int active)
63-
{
64-
/* We don't do dynamic PCI IRQ allocation */
65-
}
66-
6762
/* IOMMU controls. */
6863

6964
/* The PCI address space does not equal the physical memory address space.

‎arch/arm/include/asm/pci.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ static inline int pci_proc_domain(struct pci_bus *bus)
3131
}
3232
#endif /* CONFIG_PCI_DOMAINS */
3333

34-
static inline void pcibios_penalize_isa_irq(int irq, int active)
35-
{
36-
/* We don't do dynamic PCI IRQ allocation */
37-
}
38-
3934
/*
4035
* The PCI address space does equal the physical memory address space.
4136
* The networking and block device layers use this boolean for bounce

‎arch/blackfin/include/asm/pci.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@
1010
#define PCIBIOS_MIN_IO 0x00001000
1111
#define PCIBIOS_MIN_MEM 0x10000000
1212

13-
static inline void pcibios_penalize_isa_irq(int irq)
14-
{
15-
/* We don't do dynamic PCI IRQ allocation */
16-
}
17-
1813
#endif /* _ASM_BFIN_PCI_H */

‎arch/cris/include/asm/pci.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ void pcibios_config_init(void);
2020
struct pci_bus * pcibios_scan_root(int bus);
2121

2222
void pcibios_set_master(struct pci_dev *dev);
23-
void pcibios_penalize_isa_irq(int irq);
2423
struct irq_routing_table *pcibios_get_irq_routing_table(void);
2524
int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
2625

‎arch/frv/include/asm/pci.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ struct pci_dev;
2424

2525
extern void pcibios_set_master(struct pci_dev *dev);
2626

27-
extern void pcibios_penalize_isa_irq(int irq);
28-
2927
#ifdef CONFIG_MMU
3028
extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
3129
extern void consistent_free(void *vaddr);

‎arch/frv/mb93090-mb00/pci-irq.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ void __init pcibios_fixup_irqs(void)
5555
}
5656
}
5757

58-
void __init pcibios_penalize_isa_irq(int irq)
59-
{
60-
}
61-
6258
void pcibios_enable_irq(struct pci_dev *dev)
6359
{
6460
pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);

‎arch/ia64/include/asm/pci.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ struct pci_dev;
5050
extern unsigned long ia64_max_iommu_merge_mask;
5151
#define PCI_DMA_BUS_IS_PHYS (ia64_max_iommu_merge_mask == ~0UL)
5252

53-
static inline void
54-
pcibios_penalize_isa_irq (int irq, int active)
55-
{
56-
/* We don't do dynamic PCI IRQ allocation */
57-
}
58-
5953
#include <asm-generic/pci-dma-compat.h>
6054

6155
#ifdef CONFIG_PCI

‎arch/microblaze/include/asm/pci.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ struct pci_dev;
4444
*/
4545
#define pcibios_assign_all_busses() 0
4646

47-
static inline void pcibios_penalize_isa_irq(int irq, int active)
48-
{
49-
/* We don't do dynamic PCI IRQ allocation */
50-
}
51-
5247
#ifdef CONFIG_PCI
5348
extern void set_pci_dma_ops(struct dma_map_ops *dma_ops);
5449
extern struct dma_map_ops *get_pci_dma_ops(void);

‎arch/mips/include/asm/pci.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ extern unsigned long PCIBIOS_MIN_MEM;
7373

7474
extern void pcibios_set_master(struct pci_dev *dev);
7575

76-
static inline void pcibios_penalize_isa_irq(int irq, int active)
77-
{
78-
/* We don't do dynamic PCI IRQ allocation */
79-
}
80-
8176
#define HAVE_PCI_MMAP
8277

8378
extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,

‎arch/mn10300/include/asm/pci.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ extern void unit_pci_init(void);
4848
#define PCIBIOS_MIN_MEM 0xB8000000
4949

5050
void pcibios_set_master(struct pci_dev *dev);
51-
void pcibios_penalize_isa_irq(int irq);
5251

5352
/* Dynamic DMA mapping stuff.
5453
* i386 has everything mapped statically.

0 commit comments

Comments
 (0)