diff options
Diffstat (limited to 'arch/mips/include/asm/pci.h')
-rw-r--r-- | arch/mips/include/asm/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h index e224876cc344..b8e24fd4cbc5 100644 --- a/arch/mips/include/asm/pci.h +++ b/arch/mips/include/asm/pci.h | |||
@@ -144,8 +144,13 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | |||
144 | 144 | ||
145 | extern char * (*pcibios_plat_setup)(char *str); | 145 | extern char * (*pcibios_plat_setup)(char *str); |
146 | 146 | ||
147 | #ifdef CONFIG_OF | ||
147 | /* this function parses memory ranges from a device node */ | 148 | /* this function parses memory ranges from a device node */ |
148 | extern void pci_load_of_ranges(struct pci_controller *hose, | 149 | extern void pci_load_of_ranges(struct pci_controller *hose, |
149 | struct device_node *node); | 150 | struct device_node *node); |
151 | #else | ||
152 | static inline void pci_load_of_ranges(struct pci_controller *hose, | ||
153 | struct device_node *node) {} | ||
154 | #endif | ||
150 | 155 | ||
151 | #endif /* _ASM_PCI_H */ | 156 | #endif /* _ASM_PCI_H */ |