#include <linux/kref.h>
#include <linux/mod_devicetable.h>
#include <linux/spinlock.h>
+ #include <linux/topology.h>
#include <asm/byteorder.h>
#include <asm/errno.h>
#define OF_BAD_ADDR ((u64)-1)
- #ifndef of_node_to_nid
- static inline int of_node_to_nid(struct device_node *np) { return -1; }
- #define of_node_to_nid of_node_to_nid
- #endif
-
static inline const char* of_node_full_name(struct device_node *np)
{
return np ? np->full_name : "<no-node>";
return -ENOSYS;
}
+static inline int of_property_match_string(struct device_node *np,
+ const char *propname,
+ const char *string)
+{
+ return -ENOSYS;
+}
+
static inline struct device_node *of_parse_phandle(struct device_node *np,
const char *phandle_name,
int index)
return NULL;
}
+static inline int of_parse_phandle_with_args(struct device_node *np,
+ const char *list_name,
+ const char *cells_name,
+ int index,
+ struct of_phandle_args *out_args)
+{
+ return -ENOSYS;
+}
+
static inline int of_alias_get_id(struct device_node *np, const char *stem)
{
return -ENOSYS;
while (0)
#endif /* CONFIG_OF */
+ #ifndef of_node_to_nid
+ static inline int of_node_to_nid(struct device_node *np)
+ {
+ return numa_node_id();
+ }
+
+ #define of_node_to_nid of_node_to_nid
+ #endif
+
/**
* of_property_read_bool - Findfrom a property
* @np: device node from which the property value is to be read.