]> git.baikalelectronics.ru Git - uboot.git/commit
lmb: Fix LMB_MEMORY_REGIONS flag usage
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 2 Aug 2022 08:21:35 +0000 (10:21 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 10 Aug 2022 17:38:30 +0000 (13:38 -0400)
commit93c34db88709c149bb06b5333eff55f7f79d9ced
tree688a7495be70cf38dd466eed66dddc8e8f8e4efd
parent01cd3f9ec9776d8d5a605e92b9866f1fa19b996a
lmb: Fix LMB_MEMORY_REGIONS flag usage

This patch is fixing a broken boot observed on stm32mp157c-dk2 board.

IS_ENABLED macro should be used to check if a compilation flag is set
to "y" or "m".
LMB_MEMORY_REGIONS is set to a numerical value, IS_ENABLED macro is not
suitable in this case.

Fixes: 75c729cadc20 ("lmb: Fix lmb property's defination under struct lmb")
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/lmb.h
lib/lmb.c