aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/prom.h2
-rw-r--r--include/asm-sparc/prom.h2
-rw-r--r--include/asm-sparc64/prom.h2
3 files changed, 6 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 */
diff --git a/include/asm-sparc/prom.h b/include/asm-sparc/prom.h
index a8a121f6332b..c755c69404f7 100644
--- a/include/asm-sparc/prom.h
+++ b/include/asm-sparc/prom.h
@@ -23,6 +23,8 @@
23#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2 23#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2
24#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 24#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
25 25
26#define of_compat_cmp(s1, s2, l) strncmp((s1), (s2), (l))
27
26typedef u32 phandle; 28typedef u32 phandle;
27typedef u32 ihandle; 29typedef u32 ihandle;
28 30
diff --git a/include/asm-sparc64/prom.h b/include/asm-sparc64/prom.h
index c98d1545ee8d..040d198ee842 100644
--- a/include/asm-sparc64/prom.h
+++ b/include/asm-sparc64/prom.h
@@ -23,6 +23,8 @@
23#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2 23#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2
24#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 24#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
25 25
26#define of_compat_cmp(s1, s2, l) strncmp((s1), (s2), (l))
27
26typedef u32 phandle; 28typedef u32 phandle;
27typedef u32 ihandle; 29typedef u32 ihandle;
28 30