Skip to content

Commit

Permalink
of: Add stub of_get_parent for non-OF builds
Browse files Browse the repository at this point in the history
Fixes build error on x86_64 allmodconfig, introduced by commit
5ab3a89 ("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>
  • Loading branch information
Alexander Shiyan authored and Samuel Ortiz committed Apr 9, 2013
1 parent 651da3d commit 066ec1d
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 @@ -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;
Expand Down

0 comments on commit 066ec1d

Please sign in to comment.