diff options
author | Scott Wood <scottwood@freescale.com> | 2007-08-20 13:39:48 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-22 01:21:48 -0400 |
commit | a73ac50c4787b1b28d5c94bb18c60352f5dd7d6f (patch) | |
tree | 8c78ad293d3ee4bb43543e25df348b729832a02c /arch/powerpc/boot/ops.h | |
parent | 0602801c22ea1767cd0298b11da140bd5cb764d2 (diff) |
[POWERPC] bootwrapper: Add dt_is_compatible()
This can be used rather than doing a simple strcmp, which will fail to
handle multiple compatible entries.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/ops.h')
-rw-r--r-- | arch/powerpc/boot/ops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index aebd6edc9a90..a10bf5a153d5 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h | |||
@@ -87,6 +87,7 @@ void *simple_alloc_init(char *base, unsigned long heap_size, | |||
87 | extern void flush_cache(void *, unsigned long); | 87 | extern void flush_cache(void *, unsigned long); |
88 | int dt_xlate_reg(void *node, int res, unsigned long *addr, unsigned long *size); | 88 | int dt_xlate_reg(void *node, int res, unsigned long *addr, unsigned long *size); |
89 | int dt_xlate_addr(void *node, u32 *buf, int buflen, unsigned long *xlated_addr); | 89 | int dt_xlate_addr(void *node, u32 *buf, int buflen, unsigned long *xlated_addr); |
90 | int dt_is_compatible(void *node, const char *compat); | ||
90 | 91 | ||
91 | static inline void *finddevice(const char *name) | 92 | static inline void *finddevice(const char *name) |
92 | { | 93 | { |