of: Add stub of_get_parent for non-OF builds
authorAlexander Shiyan <shc_work@mail.ru>
Tue, 9 Apr 2013 15:47:40 +0000 (19:47 +0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Apr 2013 20:50:33 +0000 (22:50 +0200)
commit066ec1dd44e84a911fe04556e4a9b89f1c83b0cb
treeee6a4b8fcf74c2f515c19807762f2cc8347d3ae8
parent651da3d4026ece555853694f51dbad566f113793
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>
include/linux/of.h