aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/generic/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/txx9/generic/pci.c')
-rw-r--r--arch/mips/txx9/generic/pci.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/mips/txx9/generic/pci.c b/arch/mips/txx9/generic/pci.c
index 0bd2a1e1ff9a..fb998726bd5d 100644
--- a/arch/mips/txx9/generic/pci.c
+++ b/arch/mips/txx9/generic/pci.c
@@ -386,9 +386,10 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
386 return 0; 386 return 0;
387} 387}
388 388
389int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 389static int (*txx9_pci_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin);
390int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
390{ 391{
391 return txx9_board_vec->pci_map_irq(dev, slot, pin); 392 return txx9_pci_map_irq(dev, slot, pin);
392} 393}
393 394
394char * (*txx9_board_pcibios_setup)(char *str) __initdata; 395char * (*txx9_board_pcibios_setup)(char *str) __initdata;
@@ -424,5 +425,8 @@ char *__init txx9_pcibios_setup(char *str)
424 txx9_pci_err_action = TXX9_PCI_ERR_IGNORE; 425 txx9_pci_err_action = TXX9_PCI_ERR_IGNORE;
425 return NULL; 426 return NULL;
426 } 427 }
428
429 txx9_pci_map_irq = txx9_board_vec->pci_map_irq;
430
427 return str; 431 return str;
428} 432}