diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-03-01 13:32:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-03 08:25:59 +0100 |
commit | f3ca81f0e08075c2d77b47ff432dc2243e0d4297 (patch) | |
tree | a6e72d618d61c150c17e7bbf14a4bb3d3be2a888 /include | |
parent | 58e0e42d8e13f523f464f90b0d8415a51dbaf5be (diff) | |
download | barebox-f3ca81f0e08075c2d77b47ff432dc2243e0d4297.tar.gz barebox-f3ca81f0e08075c2d77b47ff432dc2243e0d4297.tar.xz |
of: add no-op functions for of_find_node_by_alias() and of_find_node_by_path_or_alias()
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/include/of.h b/include/of.h index fe5805c93b..9601225618 100644 --- a/include/of.h +++ b/include/of.h @@ -240,6 +240,10 @@ void of_add_memory_bank(struct device_node *node, bool dump, int r, struct device_d *of_find_device_by_node_path(const char *path); int of_find_path(struct device_node *node, const char *propname, char **outpath); int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context); +struct device_node *of_find_node_by_alias(struct device_node *root, + const char *alias); +struct device_node *of_find_node_by_path_or_alias(struct device_node *root, + const char *str); #else static inline int of_parse_partitions(struct cdev *cdev, struct device_node *node) @@ -602,6 +606,18 @@ static inline int of_register_fixup(int (*fixup)(struct device_node *, void *), { return -ENOSYS; } + +static inline struct device_node *of_find_node_by_alias( + struct device_node *root, const char *alias) +{ + return NULL; +} + +static inline struct device_node *of_find_node_by_path_or_alias( + struct device_node *root, const char *str) +{ + return NULL; +} #endif #define for_each_node_by_name(dn, name) \ @@ -735,10 +751,6 @@ int of_device_disable_path(const char *path); phandle of_get_tree_max_phandle(struct device_node *root); phandle of_node_create_phandle(struct device_node *node); int of_set_property_to_child_phandle(struct device_node *node, char *prop_name); -struct device_node *of_find_node_by_alias(struct device_node *root, - const char *alias); -struct device_node *of_find_node_by_path_or_alias(struct device_node *root, - const char *str); static inline struct device_node *of_find_root_node(struct device_node *node) { |