From: Patrice Chotard Date: Wed, 27 Apr 2022 11:53:57 +0000 (+0200) Subject: board: stm32f746-disco: Fix dram_init() in none SPL config X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=16613edbc1b59e906a41e84382f3e098f0ec946a;p=u-boot.git board: stm32f746-disco: Fix dram_init() in none SPL config Replace CONFIG_SUPPORT_SPL by CONFIG_SPL_BUILD to allow dram_init() execution when using none SPL defconfig (stm32f746-disco_defconfig). Signed-off-by: Patrice Chotard Reviewed-by: Patrick Delaunay --- diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c index 69f657c54b..2ab23f2f4f 100644 --- a/board/st/stm32f746-disco/stm32f746-disco.c +++ b/board/st/stm32f746-disco/stm32f746-disco.c @@ -29,7 +29,7 @@ DECLARE_GLOBAL_DATA_PTR; int dram_init(void) { -#ifndef CONFIG_SUPPORT_SPL +#ifndef CONFIG_SPL_BUILD int rv; struct udevice *dev; rv = uclass_get_device(UCLASS_RAM, 0, &dev);