aboutsummaryrefslogtreecommitdiff
path: root/drivers/core/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/core/root.c')
-rw-r--r--drivers/core/root.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/core/root.c b/drivers/core/root.c
index 78de7cdf87..2bfa75b472 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -132,6 +132,9 @@ int dm_init(bool of_live)
{
int ret;
+ if (IS_ENABLED(CONFIG_OF_TRANSLATE_ZERO_SIZE_CELLS))
+ gd->dm_flags |= GD_DM_FLG_SIZE_CELLS_0;
+
if (gd->dm_root) {
dm_warn("Virtual root driver already exists!\n");
return -EINVAL;