aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOhad Ben-Cohen <[email protected]>2015-06-18 11:44:41 +0300
committerOhad Ben-Cohen <[email protected]>2015-06-18 11:44:41 +0300
commit8de3dbd0895bebe52d069a82feae8e3fb51c1bdf (patch)
tree966275e61d29034b7d4964a11eb3660c19a1bff8
parenta01bc0d5f557bd8becd0ba75d09c39192004697e (diff)
remoteproc: fix !CONFIG_OF build breakage
Fix this: drivers/remoteproc/remoteproc_core.c: In function 'rproc_get_by_phandle': >> drivers/remoteproc/remoteproc_core.c:1167:2: error: implicit declaration of function 'of_find_node_by_phandle' [-Werror=implicit-function-declaration] np = of_find_node_by_phandle(phandle); Reported-by: kbuild test robot <[email protected]> Cc: Dave Gerlach <[email protected]> Cc: Suman Anna <[email protected]> Signed-off-by: Ohad Ben-Cohen <[email protected]>
-rw-r--r--drivers/remoteproc/remoteproc_core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index b4ab38015cf2..8b3130f22b42 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1178,6 +1178,7 @@ EXPORT_SYMBOL(rproc_shutdown);
*
* Returns the rproc handle on success, and NULL on failure.
*/
+#ifdef CONFIG_OF
struct rproc *rproc_get_by_phandle(phandle phandle)
{
struct rproc *rproc = NULL, *r;
@@ -1201,6 +1202,12 @@ struct rproc *rproc_get_by_phandle(phandle phandle)
return rproc;
}
+#else
+struct rproc *rproc_get_by_phandle(phandle phandle)
+{
+ return NULL;
+}
+#endif
EXPORT_SYMBOL(rproc_get_by_phandle);
/**