]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/asm-sparc64/prom.h
Consolidate of_get_parent
[karo-tx-linux.git] / include / asm-sparc64 / prom.h
index 9905ed057d939db4dde06664ad592024517a55f2..e83896f3c141a3178c791be8dcf8c0b180b5aa98 100644 (file)
 #include <linux/proc_fs.h>
 #include <asm/atomic.h>
 
+#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))
+#define of_prop_cmp(s1, s2)            strcasecmp((s1), (s2))
+
 typedef u32 phandle;
 typedef u32 ihandle;
 
@@ -72,6 +78,15 @@ extern int of_getintprop_default(struct device_node *np,
 
 extern void prom_build_devicetree(void);
 
+/* Dummy ref counting routines - to be implemented later */
+static inline struct device_node *of_node_get(struct device_node *node)
+{
+       return node;
+}
+static inline void of_node_put(struct device_node *node)
+{
+}
+
 /*
  * NB:  This is here while we transition from using asm/prom.h
  * to linux/of.h