diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-10 19:49:57 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-10 19:49:57 +0200 |
commit | 606799cc5049ae4ccb51ba3242365ca2d411da13 (patch) | |
tree | c4b71297171aebf96a5c4385147dc171fd852f24 /drivers/pci | |
parent | PCI: Remove unused pci_fixup_irqs() function (diff) | |
download | linux-606799cc5049ae4ccb51ba3242365ca2d411da13.tar.xz linux-606799cc5049ae4ccb51ba3242365ca2d411da13.zip |
PCI: Inline and remove pcibios_update_irq()
pcibios_update_irq() was a weak function with only one trivial
implementation. Inline it and remove the weak function.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/setup-irq.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/pci/setup-irq.c b/drivers/pci/setup-irq.c index 69e3b56c32a4..86106c44ce94 100644 --- a/drivers/pci/setup-irq.c +++ b/drivers/pci/setup-irq.c @@ -17,12 +17,6 @@ #include <linux/cache.h> #include "pci.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); -} - void pci_assign_irq(struct pci_dev *dev) { u8 pin; @@ -65,5 +59,5 @@ void pci_assign_irq(struct pci_dev *dev) /* Always tell the device, so the driver knows what is the real IRQ to use; the device does not use it. */ - pcibios_update_irq(dev, irq); + pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); } |