common: Drop check for DM in initf_dm()

This is enabled by all boards, so drop the condition.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
(cherry picked from commit 70c79dc88f)
This commit is contained in:
Simon Glass
2024-11-20 08:36:39 -07:00
committed by Simon Glass
parent 804fba6df6
commit e010443b06

View File

@@ -822,9 +822,11 @@ static int initf_bootstage(void)
static int initf_dm(void)
{
#if defined(CONFIG_DM) && CONFIG_IS_ENABLED(SYS_MALLOC_F)
int ret;
if (!CONFIG_IS_ENABLED(SYS_MALLOC_F))
return 0;
bootstage_start(BOOTSTAGE_ID_ACCUM_DM_F, "dm_f");
ret = dm_init_and_scan(true);
bootstage_accum(BOOTSTAGE_ID_ACCUM_DM_F);
@@ -836,7 +838,6 @@ static int initf_dm(void)
if (ret)
return ret;
}
#endif
return 0;
}