Commit 36a0904e authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Grant Likely

dt: add empty dt helpers for non-dt build

Add empty of_device_is_compatible() and of_parse_phandle() for non-dt
builds to work.
Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 6b3754d6
......@@ -255,6 +255,12 @@ static inline bool of_have_populated_dt(void)
#define for_each_child_of_node(parent, child) \
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,
const char *name,
int *lenp)
......@@ -289,6 +295,13 @@ static inline int of_property_read_u64(const struct device_node *np,
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
#endif /* CONFIG_OF */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment