aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-04-16 10:49:20 +0400
committerRuchi Kandoi <kandoiruchi@google.com>2015-06-26 17:12:07 -0700
commit9e7f1b065a312062eb8acdb1c505ddb3792b7583 (patch)
treec0346fd67a70491114b483659f5a78af1465b697 /include
parentddd9aac59e0aea3d5a4df485173115e8ecb3e17d (diff)
downloadedison-v3.10-9e7f1b065a312062eb8acdb1c505ddb3792b7583.tar.gz
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); Change-Id: Ib635dffb97877a2820fb80b99db96a285a6d2d14 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 1fd08ca2310..76979f47fa9 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -356,6 +356,11 @@ static inline struct device_node *of_find_node_by_name(struct device_node *from,
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;