X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Fasm-ppc%2Fprom.h;h=6d431d6fb022df2e180b3af40100719032b8cb50;hb=6749c5507388f3fc3719f57a54b540ee83f6661a;hp=eb317a0806e4b713112ced1db1a5592411798ca1;hpb=6150c32589d1976ca8a5c987df951088c05a7542;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-ppc/prom.h b/include/asm-ppc/prom.h index eb317a0806e..6d431d6fb02 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, 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__ */