diff options
author | Suman Anna <s-anna@ti.com> | 2015-06-17 12:53:53 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-06-23 11:18:30 -0400 |
commit | ce16b9d2356125eb791bd920c710b8512eecce54 (patch) | |
tree | c45074112c7ed60ec208c190521a264059213747 /include/linux/of.h | |
parent | 294240ffe784e951dc2ef070da04fa31ef6db3a0 (diff) |
of: define of_find_node_by_phandle for !CONFIG_OF
Define stub implementation for of_find_node_by_phandle() API
so that users of this API can build properly even when CONFIG_OF
is not defined.
Fixes x86 randconfig build failure of remoteproc.
Signed-off-by: Suman Anna <s-anna@ti.com>
[robh: add details on fixing remoteproc compile]
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index a3eb9d1e5800..54f858798e8c 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -422,6 +422,11 @@ static inline struct device_node *of_find_node_opts_by_path(const char *path, | |||
422 | return NULL; | 422 | return NULL; |
423 | } | 423 | } |
424 | 424 | ||
425 | static inline struct device_node *of_find_node_by_phandle(phandle handle) | ||
426 | { | ||
427 | return NULL; | ||
428 | } | ||
429 | |||
425 | static inline struct device_node *of_get_parent(const struct device_node *node) | 430 | static inline struct device_node *of_get_parent(const struct device_node *node) |
426 | { | 431 | { |
427 | return NULL; | 432 | return NULL; |