diff --git a/boards/arm/imxrt/imxrt1060-evk/src/imxrt_appinit.c b/boards/arm/imxrt/imxrt1060-evk/src/imxrt_appinit.c index bb07ed00c7..f74ba7ed52 100644 --- a/boards/arm/imxrt/imxrt1060-evk/src/imxrt_appinit.c +++ b/boards/arm/imxrt/imxrt1060-evk/src/imxrt_appinit.c @@ -27,13 +27,10 @@ #include #include +#include #include "imxrt1060-evk.h" -#if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER) -# define HAVE_LEDS 0 -#endif - #ifdef CONFIG_BOARDCTL /**************************************************************************** @@ -67,7 +64,7 @@ int board_app_initialize(uintptr_t arg) { -#ifdef HAVE_LEDS +#if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER) /* Register the LED driver */ int ret; diff --git a/boards/arm/imxrt/imxrt1064-evk/src/imxrt_appinit.c b/boards/arm/imxrt/imxrt1064-evk/src/imxrt_appinit.c index 31f4398b0e..2f0be85e09 100644 --- a/boards/arm/imxrt/imxrt1064-evk/src/imxrt_appinit.c +++ b/boards/arm/imxrt/imxrt1064-evk/src/imxrt_appinit.c @@ -27,13 +27,10 @@ #include #include +#include #include "imxrt1064-evk.h" -#if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER) -# define HAVE_LEDS 0 -#endif - #ifdef CONFIG_BOARDCTL /**************************************************************************** @@ -67,7 +64,7 @@ int board_app_initialize(uintptr_t arg) { -#ifdef HAVE_LEDS +#if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER) /* Register the LED driver */ int ret; diff --git a/boards/arm/imxrt/teensy-4.x/src/imxrt_appinit.c b/boards/arm/imxrt/teensy-4.x/src/imxrt_appinit.c index 97ba5d23e4..662cf19fe2 100644 --- a/boards/arm/imxrt/teensy-4.x/src/imxrt_appinit.c +++ b/boards/arm/imxrt/teensy-4.x/src/imxrt_appinit.c @@ -28,13 +28,10 @@ #include #include +#include #include "teensy-4.h" -#if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER) -# define HAVE_LEDS 0 -#endif - #ifdef CONFIG_BOARDCTL /**************************************************************************** @@ -69,7 +66,7 @@ int board_app_initialize(uintptr_t arg) { int ret; - #ifdef HAVE_LEDS +#if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER) /* Register the LED driver */ ret = userled_lower_initialize(LED_DRIVER_PATH);