summaryrefslogtreecommitdiff
path: root/drivers/core/device.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-04 17:57:58 (GMT)
committerSimon Glass <sjg@chromium.org>2016-07-15 02:40:24 (GMT)
commit29629eb897f8d8119b06477d0ca3c4b424726e51 (patch)
tree4254d41ba3eb1705f5fcea51a4ef1950093030e3 /drivers/core/device.c
parent054b3a1e80fcbca02cb0d0728629af02f18517f5 (diff)
downloadu-boot-29629eb897f8d8119b06477d0ca3c4b424726e51.tar.xz
dm: core: Don't use device tree with of-platdata
When CONFIG_SPL_OF_PLATDATA is enabled we should not access the device tree. Remove all references to this in the core driver-model code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/device.c')
-rw-r--r--drivers/core/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c
index f7fb0cc..d8f9d5b 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -608,7 +608,7 @@ const char *dev_get_uclass_name(struct udevice *dev)
fdt_addr_t dev_get_addr_index(struct udevice *dev, int index)
{
-#if CONFIG_IS_ENABLED(OF_CONTROL)
+#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
fdt_addr_t addr;
if (CONFIG_IS_ENABLED(OF_TRANSLATE)) {