9
0
Fork 0

of: provide NULL of_get_root_node for \!CONFIG_OFTREE

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-05-23 15:10:07 +02:00
parent 3511773e57
commit 04fdd75d8a
1 changed files with 6 additions and 1 deletions

View File

@ -167,7 +167,6 @@ int of_set_property(struct device_node *node, const char *p, const void *val, in
int create);
struct device_node *of_create_node(struct device_node *root, const char *path);
struct device_node *of_get_root_node(void);
int of_set_root_node(struct device_node *);
const struct of_device_id *of_match_node(const struct of_device_id *matches,
@ -183,6 +182,7 @@ int of_device_is_stdout_path(struct device_d *dev);
const char *of_get_model(void);
void *of_flatten_dtb(struct device_node *node);
int of_add_memory(struct device_node *node, bool dump);
struct device_node *of_get_root_node(void);
#else
static inline int of_parse_partitions(struct cdev *cdev,
struct device_node *node)
@ -214,6 +214,11 @@ static inline int of_add_memory(struct device_node *node, bool dump)
{
return -EINVAL;
}
static inline struct device_node *of_get_root_node(void)
{
return NULL;
}
#endif
#endif /* __OF_H */