mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
PCI: Provide a default pcibios_update_irq()
Most architectures implement this in exactly the same way. Instead of having each architecture duplicate this function, provide a single implementation in the core and make it a weak symbol so that it can be overridden on architectures where it is required. Signed-off-by: Thierry Reding <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
This commit is contained in:
parent
3ddbebf878
commit
8885b7b637
14 changed files with 5 additions and 89 deletions
|
|
@ -17,6 +17,11 @@
|
|||
#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
|
||||
pdev_fixup_irq(struct pci_dev *dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue