From: Gowtham Tammana Date: Thu, 24 Jun 2021 17:16:14 +0000 (-0500) Subject: arm: mach-k3: am642_init: Add missing ddr guard X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=ba7455a796d29b8bac9767433ccebd4b0899e7fd;p=u-boot.git arm: mach-k3: am642_init: Add missing ddr guard The `struct udevice *` reference is needed for either of the K3_LOAD_SYSFW, K3_AM64_DDRSS config guards. Adding the missing K3_AM64_DDRSS guard. Signed-off-by: Gowtham Tammana Signed-off-by: Lokesh Vutla Link: https://lore.kernel.org/r/20210624171614.14244-1-g-tammana@ti.com --- diff --git a/arch/arm/mach-k3/am642_init.c b/arch/arm/mach-k3/am642_init.c index 579dbacb7e..0e46d70e84 100644 --- a/arch/arm/mach-k3/am642_init.c +++ b/arch/arm/mach-k3/am642_init.c @@ -141,7 +141,7 @@ int fdtdec_board_setup(const void *fdt_blob) void board_init_f(ulong dummy) { -#if defined(CONFIG_K3_LOAD_SYSFW) +#if defined(CONFIG_K3_LOAD_SYSFW) || defined(CONFIG_K3_AM64_DDRSS) struct udevice *dev; int ret; #endif