From c0ae6ea006d627896fde599806d73c87c87b504a Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 27 Jul 2021 20:19:28 +0200 Subject: toradex: tdx-cfg-block: fix verdin handling | #if !defined(CONFIG_TARGET_VERDIN_IMX8MM) || !defined(CONFIG_TARGET_VERDIN_IMX8MN) is never false. Fix that so that the condition is 'true' for any board but the two verdins. Fixes commit c0c3978cba3 ("toradex: tdx-cfg-block: add Verdin iMX8M Mini/Nano support"). Signed-off-by: Max Krummenacher --- board/toradex/common/tdx-cfg-block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c index 107b25bc60..b26b01ab8e 100644 --- a/board/toradex/common/tdx-cfg-block.c +++ b/board/toradex/common/tdx-cfg-block.c @@ -361,7 +361,7 @@ static int get_cfgblock_interactive(void) if (cpu_is_pxa27x()) sprintf(message, "Is the module the 312 MHz version? [y/N] "); -#if !defined(CONFIG_TARGET_VERDIN_IMX8MM) || !defined(CONFIG_TARGET_VERDIN_IMX8MN) +#if !(defined(CONFIG_TARGET_VERDIN_IMX8MM) || defined(CONFIG_TARGET_VERDIN_IMX8MN)) else sprintf(message, "Is the module an IT version? [y/N] "); -- cgit v1.2.3