summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-09-19 10:52:37 -0600
committerBjorn Helgaas <bhelgaas@google.com>2012-09-19 10:52:37 -0600
commit9b9a6d261616bed589302bc6244c5bd7c99a733f (patch)
tree40c45e75445e724fc2a2281d28a7dd84d7d2ad57 /drivers/pci
parent8704936a70586cc0834ddf35760cd0fe4b65131e (diff)
parent8885b7b637fa9aca7e1b00581a0173c6956966d3 (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 'drivers/pci')
-rw-r--r--drivers/pci/setup-irq.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/pci/setup-irq.c b/drivers/pci/setup-irq.c
index eb219a1d16f7..9bd6864ec5d3 100644
--- a/drivers/pci/setup-irq.c
+++ b/drivers/pci/setup-irq.c
@@ -17,8 +17,13 @@
#include <linux/ioport.h>
#include <linux/cache.h>
+void __weak pcibios_update_irq(struct pci_dev *dev, int irq)
+{
+ dev_dbg(&dev->dev, "assigning IRQ %02d\n", irq);
+ pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
+}
-static void __init
+static void
pdev_fixup_irq(struct pci_dev *dev,
u8 (*swizzle)(struct pci_dev *, u8 *),
int (*map_irq)(const struct pci_dev *, u8, u8))
@@ -54,7 +59,7 @@ pdev_fixup_irq(struct pci_dev *dev,
pcibios_update_irq(dev, irq);
}
-void __init
+void
pci_fixup_irqs(u8 (*swizzle)(struct pci_dev *, u8 *),
int (*map_irq)(const struct pci_dev *, u8, u8))
{