Commit 19b68fb280e8304c9c78c179ec40fdcfee793754
1 parent
ee14d29db0
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
rockchip: back-to-bootrom: simplify the #ifdef-check for LIBCOMMON in TPL/SPL
With the finer-grained control over LIBCOMMON_SUPPORT for TPL/SPL (i.e. with the newly introduced distinction between TPL_LIBCOMMON_SUPPORT and SPL_LIBCOMMON_SUPPORT), we can simplify the #ifdef-check to simply use CONFIG_IS_ENABELD. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> [fixed up to use 'puts' and LIBCOMMON:] Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
arch/arm/mach-rockchip/bootrom.c
... | ... | @@ -9,8 +9,8 @@ |
9 | 9 | |
10 | 10 | void back_to_bootrom(void) |
11 | 11 | { |
12 | -#if defined(CONFIG_SPL_LIBCOMMON_SUPPORT) && !defined(CONFIG_TPL_BUILD) | |
13 | - puts("Returning to boot ROM..."); | |
12 | +#if CONFIG_IS_ENABLED(LIBCOMMON_SUPPORT) | |
13 | + puts("Returning to boot ROM...\n"); | |
14 | 14 | #endif |
15 | 15 | _back_to_bootrom_s(); |
16 | 16 | } |