Skip to content

Commit

Permalink
of: add empty of_find_node_by_path() for !OF
Browse files Browse the repository at this point in the history
Add an empty version of of_find_node_by_path().
This fixes following build error for asoc tree:
sound/soc/fsl/fsl_ssi.c: In function 'fsl_ssi_probe':
sound/soc/fsl/fsl_ssi.c:1471:2: error: implicit declaration of function 'of_find_node_by_path' [-Werror=implicit-function-declaration]
  sprop = of_get_property(of_find_node_by_path("/"), "compatible", NULL);

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
Alexander Shiyan authored and Rob Herring committed Apr 18, 2014
1 parent e7a62df commit 20cd477
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ static inline struct device_node *of_find_matching_node_and_match(
return NULL;
}

static inline struct device_node *of_find_node_by_path(const char *path)
{
return NULL;
}

static inline struct device_node *of_get_parent(const struct device_node *node)
{
return NULL;
Expand Down

0 comments on commit 20cd477

Please sign in to comment.