diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-05-01 16:29:19 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-07-20 13:29:51 +1000 |
commit | 0081cbc3731de8ad4744ba433af51f17bf27eb9c (patch) | |
tree | b03e5c4b7087ad78a230722850a29a72b2960663 /include/asm-sparc/prom.h | |
parent | 97e873e5c8ad8711ce4cca080cff4eb5d21b3aeb (diff) | |
download | linux-3.10-0081cbc3731de8ad4744ba433af51f17bf27eb9c.tar.gz linux-3.10-0081cbc3731de8ad4744ba433af51f17bf27eb9c.tar.bz2 linux-3.10-0081cbc3731de8ad4744ba433af51f17bf27eb9c.zip |
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-sparc/prom.h')
-rw-r--r-- | include/asm-sparc/prom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-sparc/prom.h b/include/asm-sparc/prom.h index a8a121f6332..c755c69404f 100644 --- a/include/asm-sparc/prom.h +++ b/include/asm-sparc/prom.h @@ -23,6 +23,8 @@ #define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2 #define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 +#define of_compat_cmp(s1, s2, l) strncmp((s1), (s2), (l)) + typedef u32 phandle; typedef u32 ihandle; |