Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -8
+1 -7
drivers/pci/setup-irq.c
··· 17 17 #include <linux/cache.h> 18 18 #include "pci.h" 19 19 20 - void __weak pcibios_update_irq(struct pci_dev *dev, int irq) 21 - { 22 - dev_dbg(&dev->dev, "assigning IRQ %02d\n", irq); 23 - pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 24 - } 25 - 26 20 void pci_assign_irq(struct pci_dev *dev) 27 21 { 28 22 u8 pin; ··· 59 65 60 66 /* Always tell the device, so the driver knows what is 61 67 the real IRQ to use; the device does not use it. */ 62 - pcibios_update_irq(dev, irq); 68 + pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 63 69 }
-1
include/linux/pci.h
··· 844 844 resource_size_t pcibios_align_resource(void *, const struct resource *, 845 845 resource_size_t, 846 846 resource_size_t); 847 - void pcibios_update_irq(struct pci_dev *, int irq); 848 847 849 848 /* Weak but can be overriden by arch */ 850 849 void pci_fixup_cardbus(struct pci_bus *);