diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-04-16 08:49:20 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2014-04-18 15:36:10 +0200 |
commit | 20cd477c398decd6a8461ac48609b6c0ab4c7567 (patch) | |
tree | 182804cdf0dbd55e5dae725391ed7a83f7236c1b /include | |
parent | of: Clean up of_update_property (diff) | |
download | linux-20cd477c398decd6a8461ac48609b6c0ab4c7567.tar.xz linux-20cd477c398decd6a8461ac48609b6c0ab4c7567.zip |
of: add empty of_find_node_by_path() for !OF
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>
Diffstat (limited to 'include')
-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 919bf211877d..3bad8d106e0e 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -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; |