aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-09-17 07:22:53 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-09-18 19:22:25 -0400
commit3ddbebf878ac8d958bb34e87a742a6b3adc283a3 (patch)
tree6b398c32ec6b9f29e8daa0bc9c509ea5e17fba7e
parent55d512e245bc7699a8800e23df1a24195dd08217 (diff)
PCI: Discard __init annotations for pci_fixup_irqs() and related functions
Remove the __init annotations in order to keep pci_fixup_irqs() around after init (e.g. for hotplug). This requires the same change for the implementation of pcibios_update_irq() on all architectures. While at it, all __devinit annotations are removed as well, since they will be useless now that HOTPLUG is always on. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/alpha/kernel/pci.c2
-rw-r--r--arch/arm/kernel/bios32.c2
-rw-r--r--arch/ia64/pci/pci.c2
-rw-r--r--arch/mips/pci/pci.c2
-rw-r--r--arch/sh/drivers/pci/pci.c2
-rw-r--r--arch/sparc/kernel/leon_pci.c2
-rw-r--r--arch/tile/kernel/pci.c2
-rw-r--r--arch/tile/kernel/pci_gx.c2
-rw-r--r--arch/unicore32/kernel/pci.c2
-rw-r--r--arch/x86/pci/visws.c2
-rw-r--r--arch/xtensa/kernel/pci.c2
-rw-r--r--drivers/pci/setup-irq.c4
12 files changed, 13 insertions, 13 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c
index 9816d5a4d176..920392f61ef2 100644
--- a/arch/alpha/kernel/pci.c
+++ b/arch/alpha/kernel/pci.c
@@ -256,7 +256,7 @@ pcibios_fixup_bus(struct pci_bus *bus)
256 } 256 }
257} 257}
258 258
259void __init 259void
260pcibios_update_irq(struct pci_dev *dev, int irq) 260pcibios_update_irq(struct pci_dev *dev, int irq)
261{ 261{
262 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 262 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c
index 2b2f25e7fef5..0174fe6effef 100644
--- a/arch/arm/kernel/bios32.c
+++ b/arch/arm/kernel/bios32.c
@@ -272,7 +272,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8152, pci_fixup_it
272 272
273 273
274 274
275void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) 275void pcibios_update_irq(struct pci_dev *dev, int irq)
276{ 276{
277 if (debug_pci) 277 if (debug_pci)
278 printk("PCI: Assigning IRQ %02d to %s\n", irq, pci_name(dev)); 278 printk("PCI: Assigning IRQ %02d to %s\n", irq, pci_name(dev));
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
index 81acc7a57f3e..27db6a8afc44 100644
--- a/arch/ia64/pci/pci.c
+++ b/arch/ia64/pci/pci.c
@@ -461,7 +461,7 @@ 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
464void __devinit 464void
465pcibios_update_irq (struct pci_dev *dev, int irq) 465pcibios_update_irq (struct pci_dev *dev, int irq)
466{ 466{
467 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 467 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 690356808f8a..64f0419e5856 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -313,7 +313,7 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
313 } 313 }
314} 314}
315 315
316void __init 316void
317pcibios_update_irq(struct pci_dev *dev, int irq) 317pcibios_update_irq(struct pci_dev *dev, int irq)
318{ 318{
319 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 319 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index 40db2d0aef3f..1bd3e089b74f 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -192,7 +192,7 @@ 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
195void __init pcibios_update_irq(struct pci_dev *dev, int irq) 195void pcibios_update_irq(struct pci_dev *dev, int irq)
196{ 196{
197 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 197 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
198} 198}
diff --git a/arch/sparc/kernel/leon_pci.c b/arch/sparc/kernel/leon_pci.c
index 21dcda75a520..404621b775fc 100644
--- a/arch/sparc/kernel/leon_pci.c
+++ b/arch/sparc/kernel/leon_pci.c
@@ -102,7 +102,7 @@ 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
105void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) 105void pcibios_update_irq(struct pci_dev *dev, int irq)
106{ 106{
107#ifdef CONFIG_PCI_DEBUG 107#ifdef CONFIG_PCI_DEBUG
108 printk(KERN_DEBUG "LEONPCI: Assigning IRQ %02d to %s\n", irq, 108 printk(KERN_DEBUG "LEONPCI: Assigning IRQ %02d to %s\n", irq,
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c
index 33c10864d2f7..6245bba8b1d6 100644
--- a/arch/tile/kernel/pci.c
+++ b/arch/tile/kernel/pci.c
@@ -406,7 +406,7 @@ void pcibios_set_master(struct pci_dev *dev)
406/* 406/*
407 * This is called from the generic Linux layer. 407 * This is called from the generic Linux layer.
408 */ 408 */
409void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) 409void pcibios_update_irq(struct pci_dev *dev, int irq)
410{ 410{
411 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 411 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
412} 412}
diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c
index 0e213e35ffc3..5faad0b1bd21 100644
--- a/arch/tile/kernel/pci_gx.c
+++ b/arch/tile/kernel/pci_gx.c
@@ -1036,7 +1036,7 @@ char __devinit *pcibios_setup(char *str)
1036/* 1036/*
1037 * This is called from the generic Linux layer. 1037 * This is called from the generic Linux layer.
1038 */ 1038 */
1039void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) 1039void pcibios_update_irq(struct pci_dev *dev, int irq)
1040{ 1040{
1041 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 1041 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
1042} 1042}
diff --git a/arch/unicore32/kernel/pci.c b/arch/unicore32/kernel/pci.c
index 46cb6c9de6c9..c07ecc5baff6 100644
--- a/arch/unicore32/kernel/pci.c
+++ b/arch/unicore32/kernel/pci.c
@@ -154,7 +154,7 @@ void __init puv3_pci_adjust_zones(unsigned long *zone_size,
154 zhole_size[0] = 0; 154 zhole_size[0] = 0;
155} 155}
156 156
157void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) 157void pcibios_update_irq(struct pci_dev *dev, int irq)
158{ 158{
159 if (debug_pci) 159 if (debug_pci)
160 printk(KERN_DEBUG "PCI: Assigning IRQ %02d to %s\n", 160 printk(KERN_DEBUG "PCI: Assigning IRQ %02d to %s\n",
diff --git a/arch/x86/pci/visws.c b/arch/x86/pci/visws.c
index 6f2f8eeed171..9d736e7ff642 100644
--- a/arch/x86/pci/visws.c
+++ b/arch/x86/pci/visws.c
@@ -62,7 +62,7 @@ out:
62 return irq; 62 return irq;
63} 63}
64 64
65void __init pcibios_update_irq(struct pci_dev *dev, int irq) 65void pcibios_update_irq(struct pci_dev *dev, int irq)
66{ 66{
67 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 67 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
68} 68}
diff --git a/arch/xtensa/kernel/pci.c b/arch/xtensa/kernel/pci.c
index 69759e9cb3ea..6f9b40c47e99 100644
--- a/arch/xtensa/kernel/pci.c
+++ b/arch/xtensa/kernel/pci.c
@@ -212,7 +212,7 @@ void pcibios_set_master(struct pci_dev *dev)
212 212
213/* the next one is stolen from the alpha port... */ 213/* the next one is stolen from the alpha port... */
214 214
215void __init 215void
216pcibios_update_irq(struct pci_dev *dev, int irq) 216pcibios_update_irq(struct pci_dev *dev, int irq)
217{ 217{
218 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 218 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
diff --git a/drivers/pci/setup-irq.c b/drivers/pci/setup-irq.c
index eb219a1d16f7..270ae7b97120 100644
--- a/drivers/pci/setup-irq.c
+++ b/drivers/pci/setup-irq.c
@@ -18,7 +18,7 @@
18#include <linux/cache.h> 18#include <linux/cache.h>
19 19
20 20
21static void __init 21static void
22pdev_fixup_irq(struct pci_dev *dev, 22pdev_fixup_irq(struct pci_dev *dev,
23 u8 (*swizzle)(struct pci_dev *, u8 *), 23 u8 (*swizzle)(struct pci_dev *, u8 *),
24 int (*map_irq)(const struct pci_dev *, u8, u8)) 24 int (*map_irq)(const struct pci_dev *, u8, u8))
@@ -54,7 +54,7 @@ pdev_fixup_irq(struct pci_dev *dev,
54 pcibios_update_irq(dev, irq); 54 pcibios_update_irq(dev, irq);
55} 55}
56 56
57void __init 57void
58pci_fixup_irqs(u8 (*swizzle)(struct pci_dev *, u8 *), 58pci_fixup_irqs(u8 (*swizzle)(struct pci_dev *, u8 *),
59 int (*map_irq)(const struct pci_dev *, u8, u8)) 59 int (*map_irq)(const struct pci_dev *, u8, u8))
60{ 60{