summaryrefslogtreecommitdiff
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-04-09 19:47:40 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-10 00:50:33 +0400
commit066ec1dd44e84a911fe04556e4a9b89f1c83b0cb (patch)
treeee6a4b8fcf74c2f515c19807762f2cc8347d3ae8 /include/linux/of.h
parent651da3d4026ece555853694f51dbad566f113793 (diff)
downloadlinux-066ec1dd44e84a911fe04556e4a9b89f1c83b0cb.tar.xz
of: Add stub of_get_parent for non-OF builds
Fixes build error on x86_64 allmodconfig, introduced by commit 5ab3a89a741f ("mfd: syscon: Add non-DT support"). drivers/regulator/anatop-regulator.c: In function 'anatop_regulator_probe': drivers/regulator/anatop-regulator.c:134:2: error: implicit declaration of function 'of_get_parent' [-Werror=implicit-function-declaration] Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/of.h')
-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 a0f129284948..9f5923fc0775 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -353,6 +353,11 @@ static inline struct device_node *of_find_node_by_name(struct device_node *from,
return NULL;
}
+static inline struct device_node *of_get_parent(const struct device_node *node)
+{
+ return NULL;
+}
+
static inline bool of_have_populated_dt(void)
{
return false;