From: Troy Kisky Date: Mon, 13 Mar 2023 21:31:35 +0000 (-0700) Subject: ofnode: fdt_support definitions needed if OF_CONTROL is enabled X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=55e4505dd2cc3085174862711891122ef02741da;p=u-boot.git ofnode: fdt_support definitions needed if OF_CONTROL is enabled With the use of CONFIG_IS_ENABLED in code, instead of at the preprocessor level, these defines are still needed if OF_CONTROL is enabled. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- diff --git a/include/fdt_support.h b/include/fdt_support.h index 5638bd4f16..eeb83e6251 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -7,7 +7,8 @@ #ifndef __FDT_SUPPORT_H #define __FDT_SUPPORT_H -#if defined(CONFIG_OF_LIBFDT) && !defined(USE_HOSTCC) +#if (defined(CONFIG_OF_LIBFDT) || defined(CONFIG_OF_CONTROL)) && \ + !defined(USE_HOSTCC) #include #include