mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-07 19:26:40 +07:00
[MIPS] jmr3927: build fix
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
49fa3c0869
commit
69f2827657
@ -38,6 +38,10 @@ int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
|
||||
{
|
||||
unsigned char irq = pin;
|
||||
|
||||
/* SMSC SLC90E66 IDE uses irq 14, 15 (default) */
|
||||
if (dev->vendor == PCI_VENDOR_ID_EFAR &&
|
||||
dev->device == PCI_DEVICE_ID_EFAR_SLC90E66_1)
|
||||
return irq;
|
||||
/* IRQ rotation (PICMG) */
|
||||
irq--; /* 0-3 */
|
||||
if (dev->bus->parent == NULL &&
|
||||
@ -93,13 +97,3 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
|
||||
{
|
||||
/* SMSC SLC90E66 IDE uses irq 14, 15 (default) */
|
||||
if (!(dev->vendor == PCI_VENDOR_ID_EFAR &&
|
||||
dev->device == PCI_DEVICE_ID_EFAR_SLC90E66_1))
|
||||
return pci_get_irq(dev, pin);
|
||||
|
||||
dev->irq = irq;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user