diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-19 12:52:37 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-19 12:52:37 -0400 |
commit | 9b9a6d261616bed589302bc6244c5bd7c99a733f (patch) | |
tree | 40c45e75445e724fc2a2281d28a7dd84d7d2ad57 /arch | |
parent | 8704936a70586cc0834ddf35760cd0fe4b65131e (diff) | |
parent | 8885b7b637fa9aca7e1b00581a0173c6956966d3 (diff) |
Merge branch 'pci/thierry-fixup-irqs' into next
* pci/thierry-fixup-irqs:
PCI: Provide a default pcibios_update_irq()
PCI: Discard __init annotations for pci_fixup_irqs() and related functions
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/kernel/pci.c | 6 | ||||
-rw-r--r-- | arch/arm/kernel/bios32.c | 9 | ||||
-rw-r--r-- | arch/ia64/pci/pci.c | 8 | ||||
-rw-r--r-- | arch/m68k/kernel/pcibios.c | 5 | ||||
-rw-r--r-- | arch/mips/pci/pci.c | 6 | ||||
-rw-r--r-- | arch/sh/drivers/pci/pci.c | 5 | ||||
-rw-r--r-- | arch/sparc/kernel/leon_pci.c | 9 | ||||
-rw-r--r-- | arch/sparc/kernel/pci.c | 4 | ||||
-rw-r--r-- | arch/tile/kernel/pci.c | 8 | ||||
-rw-r--r-- | arch/tile/kernel/pci_gx.c | 8 | ||||
-rw-r--r-- | arch/unicore32/kernel/pci.c | 8 | ||||
-rw-r--r-- | arch/x86/pci/visws.c | 5 | ||||
-rw-r--r-- | arch/xtensa/kernel/pci.c | 8 |
13 files changed, 0 insertions, 89 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index 9816d5a4d176..ef757147cbf9 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c | |||
@@ -256,12 +256,6 @@ pcibios_fixup_bus(struct pci_bus *bus) | |||
256 | } | 256 | } |
257 | } | 257 | } |
258 | 258 | ||
259 | void __init | ||
260 | pcibios_update_irq(struct pci_dev *dev, int irq) | ||
261 | { | ||
262 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
263 | } | ||
264 | |||
265 | int | 259 | int |
266 | pcibios_enable_device(struct pci_dev *dev, int mask) | 260 | pcibios_enable_device(struct pci_dev *dev, int mask) |
267 | { | 261 | { |
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 2b2f25e7fef5..9cf16b83bbb5 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c | |||
@@ -270,15 +270,6 @@ static void __devinit pci_fixup_it8152(struct pci_dev *dev) | |||
270 | } | 270 | } |
271 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8152, pci_fixup_it8152); | 271 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8152, pci_fixup_it8152); |
272 | 272 | ||
273 | |||
274 | |||
275 | void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) | ||
276 | { | ||
277 | if (debug_pci) | ||
278 | printk("PCI: Assigning IRQ %02d to %s\n", irq, pci_name(dev)); | ||
279 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
280 | } | ||
281 | |||
282 | /* | 273 | /* |
283 | * If the bus contains any of these devices, then we must not turn on | 274 | * If the bus contains any of these devices, then we must not turn on |
284 | * parity checking of any kind. Currently this is CyberPro 20x0 only. | 275 | * parity checking of any kind. Currently this is CyberPro 20x0 only. |
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 81acc7a57f3e..a7ebe9440271 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c | |||
@@ -461,14 +461,6 @@ void pcibios_set_master (struct pci_dev *dev) | |||
461 | /* No special bus mastering setup handling */ | 461 | /* No special bus mastering setup handling */ |
462 | } | 462 | } |
463 | 463 | ||
464 | void __devinit | ||
465 | pcibios_update_irq (struct pci_dev *dev, int irq) | ||
466 | { | ||
467 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
468 | |||
469 | /* ??? FIXME -- record old value for shutdown. */ | ||
470 | } | ||
471 | |||
472 | int | 464 | int |
473 | pcibios_enable_device (struct pci_dev *dev, int mask) | 465 | pcibios_enable_device (struct pci_dev *dev, int mask) |
474 | { | 466 | { |
diff --git a/arch/m68k/kernel/pcibios.c b/arch/m68k/kernel/pcibios.c index b2988aa1840b..73fa0b56a06c 100644 --- a/arch/m68k/kernel/pcibios.c +++ b/arch/m68k/kernel/pcibios.c | |||
@@ -87,11 +87,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
87 | return 0; | 87 | return 0; |
88 | } | 88 | } |
89 | 89 | ||
90 | void pcibios_update_irq(struct pci_dev *dev, int irq) | ||
91 | { | ||
92 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
93 | } | ||
94 | |||
95 | void __devinit pcibios_fixup_bus(struct pci_bus *bus) | 90 | void __devinit pcibios_fixup_bus(struct pci_bus *bus) |
96 | { | 91 | { |
97 | struct pci_dev *dev; | 92 | struct pci_dev *dev; |
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 690356808f8a..04e35bcde07c 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c | |||
@@ -313,12 +313,6 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus) | |||
313 | } | 313 | } |
314 | } | 314 | } |
315 | 315 | ||
316 | void __init | ||
317 | pcibios_update_irq(struct pci_dev *dev, int irq) | ||
318 | { | ||
319 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
320 | } | ||
321 | |||
322 | #ifdef CONFIG_HOTPLUG | 316 | #ifdef CONFIG_HOTPLUG |
323 | EXPORT_SYMBOL(PCIBIOS_MIN_IO); | 317 | EXPORT_SYMBOL(PCIBIOS_MIN_IO); |
324 | EXPORT_SYMBOL(PCIBIOS_MIN_MEM); | 318 | EXPORT_SYMBOL(PCIBIOS_MIN_MEM); |
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index 40db2d0aef3f..a7e078f2e2e4 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c | |||
@@ -192,11 +192,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
192 | return pci_enable_resources(dev, mask); | 192 | return pci_enable_resources(dev, mask); |
193 | } | 193 | } |
194 | 194 | ||
195 | void __init pcibios_update_irq(struct pci_dev *dev, int irq) | ||
196 | { | ||
197 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
198 | } | ||
199 | |||
200 | static void __init | 195 | static void __init |
201 | pcibios_bus_report_status_early(struct pci_channel *hose, | 196 | pcibios_bus_report_status_early(struct pci_channel *hose, |
202 | int top_bus, int current_bus, | 197 | int top_bus, int current_bus, |
diff --git a/arch/sparc/kernel/leon_pci.c b/arch/sparc/kernel/leon_pci.c index 21dcda75a520..fc0521161568 100644 --- a/arch/sparc/kernel/leon_pci.c +++ b/arch/sparc/kernel/leon_pci.c | |||
@@ -102,15 +102,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
102 | return pci_enable_resources(dev, mask); | 102 | return pci_enable_resources(dev, mask); |
103 | } | 103 | } |
104 | 104 | ||
105 | void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) | ||
106 | { | ||
107 | #ifdef CONFIG_PCI_DEBUG | ||
108 | printk(KERN_DEBUG "LEONPCI: Assigning IRQ %02d to %s\n", irq, | ||
109 | pci_name(dev)); | ||
110 | #endif | ||
111 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
112 | } | ||
113 | |||
114 | /* in/out routines taken from pcic.c | 105 | /* in/out routines taken from pcic.c |
115 | * | 106 | * |
116 | * This probably belongs here rather than ioport.c because | 107 | * This probably belongs here rather than ioport.c because |
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 065b88c4f868..acc8c838ff72 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -622,10 +622,6 @@ void __devinit pcibios_fixup_bus(struct pci_bus *pbus) | |||
622 | { | 622 | { |
623 | } | 623 | } |
624 | 624 | ||
625 | void pcibios_update_irq(struct pci_dev *pdev, int irq) | ||
626 | { | ||
627 | } | ||
628 | |||
629 | resource_size_t pcibios_align_resource(void *data, const struct resource *res, | 625 | resource_size_t pcibios_align_resource(void *data, const struct resource *res, |
630 | resource_size_t size, resource_size_t align) | 626 | resource_size_t size, resource_size_t align) |
631 | { | 627 | { |
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index d2292be6fb90..759822687e8f 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c | |||
@@ -390,14 +390,6 @@ void pcibios_set_master(struct pci_dev *dev) | |||
390 | } | 390 | } |
391 | 391 | ||
392 | /* | 392 | /* |
393 | * This is called from the generic Linux layer. | ||
394 | */ | ||
395 | void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) | ||
396 | { | ||
397 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
398 | } | ||
399 | |||
400 | /* | ||
401 | * Enable memory and/or address decoding, as appropriate, for the | 393 | * Enable memory and/or address decoding, as appropriate, for the |
402 | * device described by the 'dev' struct. | 394 | * device described by the 'dev' struct. |
403 | * | 395 | * |
diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c index 0e213e35ffc3..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 | */ | ||
1039 | void __devinit 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. |
diff --git a/arch/unicore32/kernel/pci.c b/arch/unicore32/kernel/pci.c index 46cb6c9de6c9..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 __devinit 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. |
diff --git a/arch/x86/pci/visws.c b/arch/x86/pci/visws.c index 6f2f8eeed171..3e6d2a6db866 100644 --- a/arch/x86/pci/visws.c +++ b/arch/x86/pci/visws.c | |||
@@ -62,11 +62,6 @@ out: | |||
62 | return irq; | 62 | return irq; |
63 | } | 63 | } |
64 | 64 | ||
65 | void __init pcibios_update_irq(struct pci_dev *dev, int irq) | ||
66 | { | ||
67 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
68 | } | ||
69 | |||
70 | int __init pci_visws_init(void) | 65 | int __init pci_visws_init(void) |
71 | { | 66 | { |
72 | pcibios_enable_irq = &pci_visws_enable_irq; | 67 | pcibios_enable_irq = &pci_visws_enable_irq; |
diff --git a/arch/xtensa/kernel/pci.c b/arch/xtensa/kernel/pci.c index 69759e9cb3ea..54354de38a70 100644 --- a/arch/xtensa/kernel/pci.c +++ b/arch/xtensa/kernel/pci.c | |||
@@ -210,14 +210,6 @@ void pcibios_set_master(struct pci_dev *dev) | |||
210 | /* No special bus mastering setup handling */ | 210 | /* No special bus mastering setup handling */ |
211 | } | 211 | } |
212 | 212 | ||
213 | /* the next one is stolen from the alpha port... */ | ||
214 | |||
215 | void __init | ||
216 | pcibios_update_irq(struct pci_dev *dev, int irq) | ||
217 | { | ||
218 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
219 | } | ||
220 | |||
221 | int pcibios_enable_device(struct pci_dev *dev, int mask) | 213 | int pcibios_enable_device(struct pci_dev *dev, int mask) |
222 | { | 214 | { |
223 | u16 cmd, old_cmd; | 215 | u16 cmd, old_cmd; |