From: Alexander Shiyan Date: Wed, 16 Apr 2014 06:49:20 +0000 (+0400) Subject: of: add empty of_find_node_by_path() for !OF X-Git-Tag: firefly_0821_release~3678^2~23 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9565a65b88d04f33f3458047e7cbbaec6d37aef5;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Alexander Shiyan Signed-off-by: Rob Herring (cherry picked from commit 9e7f1b065a312062eb8acdb1c505ddb3792b7583) --- diff --git a/include/linux/of.h b/include/linux/of.h index 43e3746d6ce5..34e572c3fb9c 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -413,6 +413,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;