]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-ppc/prom.h
[PATCH] ppc: Remove powermac support from ARCH=ppc
[linux-2.6-omap-h63xx.git] / include / asm-ppc / prom.h
index eb317a0806e4b713112ced1db1a5592411798ca1..6d431d6fb022df2e180b3af40100719032b8cb50 100644 (file)
@@ -167,6 +167,14 @@ extern int of_address_to_resource(struct device_node *dev, int index,
 extern int of_pci_address_to_resource(struct device_node *dev, int bar,
                                      struct resource *r);
 
+#ifndef CONFIG_PPC_OF
+/*
+ * Fallback definitions for builds where we don't have prom.c included.
+ */
+#define machine_is_compatible(x)               0
+#define of_find_compatible_node(f, t, c)       NULL
+#define get_property(p, n, l)                  NULL
+#endif
 
 #endif /* _PPC_PROM_H */
 #endif /* __KERNEL__ */