diff options
author | Michal Simek <michal.simek@amd.com> | 2022-09-07 10:52:09 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2022-09-12 13:05:06 +0300 |
commit | 85007da94bad2d27e40e0258fa5437a35034ee1d (patch) | |
tree | 027be2a3e02a868fb55d83b03e026667ce95c911 | |
parent | 2fb4b5ae54704f8e334a1491c4c9f2f90958456b (diff) | |
download | u-boot-85007da94bad2d27e40e0258fa5437a35034ee1d.tar.xz |
cmd: bdinfo: Enable dumping lmb data when LMB is enabled
The commit 9996cea75f5a ("lmb/bdinfo: dump lmb info via bdinfo") added
support for dumping LMB information as the part of bdinfo. But code itself
should be called only when LMB is enabled.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/3e40c8bb77550dfca9f7eb48fe644a018d971411.1662537127.git.michal.simek@amd.com
-rw-r--r-- | cmd/bdinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 37cd8a57eb..8a1bea4e34 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -123,7 +123,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) #if CONFIG_IS_ENABLED(MULTI_DTB_FIT) bdinfo_print_num_l("multi_dtb_fit", (ulong)gd->multi_dtb_fit); #endif - if (gd->fdt_blob) { + if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) { struct lmb lmb; lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); |