From: Suman Anna Date: Wed, 17 Jun 2015 16:53:53 +0000 (-0500) Subject: of: define of_find_node_by_phandle for !CONFIG_OF X-Git-Tag: v4.2-rc1~44^2~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce16b9d2356125eb791bd920c710b8512eecce54;p=platform%2Fkernel%2Flinux-exynos.git 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 [robh: add details on fixing remoteproc compile] Signed-off-by: Rob Herring --- diff --git a/include/linux/of.h b/include/linux/of.h index a3eb9d1..54f8587 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, return NULL; } +static inline struct device_node *of_find_node_by_phandle(phandle handle) +{ + return NULL; +} + static inline struct device_node *of_get_parent(const struct device_node *node) { return NULL;