|
@@ -255,6 +255,12 @@ static inline bool of_have_populated_dt(void)
|
|
#define for_each_child_of_node(parent, child) \
|
|
#define for_each_child_of_node(parent, child) \
|
|
while (0)
|
|
while (0)
|
|
|
|
|
|
|
|
+static inline int of_device_is_compatible(const struct device_node *device,
|
|
|
|
+ const char *name)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline struct property *of_find_property(const struct device_node *np,
|
|
static inline struct property *of_find_property(const struct device_node *np,
|
|
const char *name,
|
|
const char *name,
|
|
int *lenp)
|
|
int *lenp)
|
|
@@ -289,6 +295,13 @@ static inline int of_property_read_u64(const struct device_node *np,
|
|
return -ENOSYS;
|
|
return -ENOSYS;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline struct device_node *of_parse_phandle(struct device_node *np,
|
|
|
|
+ const char *phandle_name,
|
|
|
|
+ int index)
|
|
|
|
+{
|
|
|
|
+ return NULL;
|
|
|
|
+}
|
|
|
|
+
|
|
#define of_match_ptr(_ptr) NULL
|
|
#define of_match_ptr(_ptr) NULL
|
|
#endif /* CONFIG_OF */
|
|
#endif /* CONFIG_OF */
|
|
|
|
|