diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-ppc/prom.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-ppc/prom.h b/include/asm-ppc/prom.h index eb317a0806e4..6d431d6fb022 100644 --- a/include/asm-ppc/prom.h +++ b/include/asm-ppc/prom.h | |||
@@ -167,6 +167,14 @@ extern int of_address_to_resource(struct device_node *dev, int index, | |||
167 | extern int of_pci_address_to_resource(struct device_node *dev, int bar, | 167 | extern int of_pci_address_to_resource(struct device_node *dev, int bar, |
168 | struct resource *r); | 168 | struct resource *r); |
169 | 169 | ||
170 | #ifndef CONFIG_PPC_OF | ||
171 | /* | ||
172 | * Fallback definitions for builds where we don't have prom.c included. | ||
173 | */ | ||
174 | #define machine_is_compatible(x) 0 | ||
175 | #define of_find_compatible_node(f, t, c) NULL | ||
176 | #define get_property(p, n, l) NULL | ||
177 | #endif | ||
170 | 178 | ||
171 | #endif /* _PPC_PROM_H */ | 179 | #endif /* _PPC_PROM_H */ |
172 | #endif /* __KERNEL__ */ | 180 | #endif /* __KERNEL__ */ |