diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-05-01 02:29:19 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-07-19 23:29:51 -0400 |
commit | 0081cbc3731de8ad4744ba433af51f17bf27eb9c (patch) | |
tree | b03e5c4b7087ad78a230722850a29a72b2960663 /include/asm-powerpc/prom.h | |
parent | 97e873e5c8ad8711ce4cca080cff4eb5d21b3aeb (diff) |
Consolidate of_device_is_compatible
The only difference here is that Sparc uses strncmp to match compatibility
names while PowerPC uses strncasecmp.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Paul Mackerras <paulus@samba.org>
Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-powerpc/prom.h')
-rw-r--r-- | include/asm-powerpc/prom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h index 9fe0152ae245..b05f8f26940a 100644 --- a/include/asm-powerpc/prom.h +++ b/include/asm-powerpc/prom.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 | 24 | #define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 |
25 | #define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 | 25 | #define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 |
26 | 26 | ||
27 | #define of_compat_cmp(s1, s2, l) strncasecmp((s1), (s2), (l)) | ||
28 | |||
27 | /* Definitions used by the flattened device tree */ | 29 | /* Definitions used by the flattened device tree */ |
28 | #define OF_DT_HEADER 0xd00dfeed /* marker */ | 30 | #define OF_DT_HEADER 0xd00dfeed /* marker */ |
29 | #define OF_DT_BEGIN_NODE 0x1 /* Start of node, full name */ | 31 | #define OF_DT_BEGIN_NODE 0x1 /* Start of node, full name */ |