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

MIPS: add dummy pci_load_of_ranges

The pci_load_of_ranges function is only available if
CONFIG_OF is selected. If the function is used without
CONFIG_OF being enabled it will cause a build error.

Add a dummy inline function to avoid this.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4911/
Signed-off-by: John Crispin <blogic@openwrt.org>

authored by

Gabor Juhos and committed by
John Crispin
15b6dcba 22283178

+5
+5
arch/mips/include/asm/pci.h
··· 144 144 145 145 extern char * (*pcibios_plat_setup)(char *str); 146 146 147 + #ifdef CONFIG_OF 147 148 /* this function parses memory ranges from a device node */ 148 149 extern void pci_load_of_ranges(struct pci_controller *hose, 149 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 156 #endif /* _ASM_PCI_H */