diff options
author | Tommaso Merciai <tomm.merciai@gmail.com> | 2021-12-26 18:23:11 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-02-18 18:12:23 +0100 |
commit | 22636ca23b0ff2bf89b50b0b9c5c745e2fe9d55e (patch) | |
tree | 6caff8eb826767e8dcdcfbdcc3ecf499884930c0 /board/freescale | |
parent | 310d6655a1d0a6d058446b2e0cba06eeac07c23d (diff) | |
download | u-boot-22636ca23b0ff2bf89b50b0b9c5c745e2fe9d55e.tar.gz |
freescale: imx8mm_evk: Use IS_ENABLED instead of #ifdef
Use IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG) to make the code
more readable and fix checkpatch.pl warning
Signed-off-by: Tommaso Merciai <tomm.merciai@gmail.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/imx8mm_evk/imx8mm_evk.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c index ab55135a97..e0975fcda7 100644 --- a/board/freescale/imx8mm_evk/imx8mm_evk.c +++ b/board/freescale/imx8mm_evk/imx8mm_evk.c @@ -60,9 +60,10 @@ int board_mmc_get_env_dev(int devno) int board_late_init(void) { -#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG - env_set("board_name", "EVK"); - env_set("board_rev", "iMX8MM"); -#endif + if (IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG)) { + env_set("board_name", "EVK"); + env_set("board_rev", "iMX8MM"); + } + return 0; } |