Skip to content

Commit

Permalink
remoteproc: fix !CONFIG_OF build breakage
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ohadbc committed Jun 18, 2015
1 parent a01bc0d commit 8de3dbd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/remoteproc/remoteproc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

/**
Expand Down

0 comments on commit 8de3dbd

Please sign in to comment.