The SPL can also be compiled with sysreset drivers just fine, so update the condition to cater for that option.
Signed-off-by: Marek Vasut <[email protected]> Cc: Fabio Estevam <[email protected]> Cc: Flavio Suligoi <[email protected]> Cc: Harald Seiler <[email protected]> Cc: Igor Opaniuk <[email protected]> Cc: Marcel Ziswiler <[email protected]> Cc: Oleksandr Suvorov <[email protected]> Cc: Peng Fan <[email protected]> Cc: Stefano Babic <[email protected]> --- arch/arm/mach-imx/imx8m/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 7fcbd53f30..0f17252e80 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -382,7 +382,7 @@ int ft_system_setup(void *blob, bd_t *bd) } #endif -#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_SYSRESET) +#if !CONFIG_IS_ENABLED(SYSRESET) void reset_cpu(ulong addr) { struct watchdog_regs *wdog = (struct watchdog_regs *)addr; -- 2.25.1

