dm: core: Decouple DM from DT
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 31 Aug 2019 16:03:28 +0000 (18:03 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 2 Sep 2019 15:38:42 +0000 (17:38 +0200)
commitd7677bfc04920aa5e6a7c886a5095bcd53e0503a
tree1b7d1fda5a0139123e22caa723bca2cc4e9affe7
parentd22c8be964a870f59d2fdab6c67cefa0c4799364
dm: core: Decouple DM from DT

Some of the DM functions depend on OF_CONTROL, which is incorrect.
DM and DT are orthogonal. Add macro guards around such functions to
avoid compiling them in when DM is enabled, while OF_CONTROL is not.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
drivers/core/device.c
drivers/core/root.c
drivers/core/util.c