summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorGabor Juhos2013-02-02 14:36:48 +0100
committerJohn Crispin2013-02-17 01:25:37 +0100
commit15b6dcba427d70e61667c28b45e3f090ff00acb1 (patch)
tree45a34b19566458f62211c79e3e9da432f25e7978 /arch/mips
parentMIPS: avoid possible resource conflict in register_pci_controller (diff)
downloadkernel-qcow2-linux-15b6dcba427d70e61667c28b45e3f090ff00acb1.tar.gz
kernel-qcow2-linux-15b6dcba427d70e61667c28b45e3f090ff00acb1.tar.xz
kernel-qcow2-linux-15b6dcba427d70e61667c28b45e3f090ff00acb1.zip
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>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/include/asm/pci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h
index d69ea743272b..630645ea5d92 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)
extern char * (*pcibios_plat_setup)(char *str);
+#ifdef CONFIG_OF
/* this function parses memory ranges from a device node */
extern void pci_load_of_ranges(struct pci_controller *hose,
struct device_node *node);
+#else
+static inline void pci_load_of_ranges(struct pci_controller *hose,
+ struct device_node *node) {}
+#endif
#endif /* _ASM_PCI_H */