]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: back-to-bootrom: simplify the #ifdef-check for LIBCOMMON in TPL/SPL
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Thu, 29 Jun 2017 09:28:15 +0000 (11:28 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:19 +0000 (17:12 +0200)
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>
arch/arm/mach-rockchip/bootrom.c

index 4ca996231015a38cd0a5c05e288d28be73c4b284..8380e4e00613b8c2cd8e4fc587226b51d6dba2e1 100644 (file)
@@ -9,8 +9,8 @@
 
 void back_to_bootrom(void)
 {
-#if defined(CONFIG_SPL_LIBCOMMON_SUPPORT) && !defined(CONFIG_TPL_BUILD)
-       puts("Returning to boot ROM...");
+#if CONFIG_IS_ENABLED(LIBCOMMON_SUPPORT)
+       puts("Returning to boot ROM...\n");
 #endif
        _back_to_bootrom_s();
 }