From: Philipp Tomsich Date: Thu, 29 Jun 2017 09:28:15 +0000 (+0200) Subject: rockchip: back-to-bootrom: simplify the #ifdef-check for LIBCOMMON in TPL/SPL X-Git-Tag: v2017.09-rc2~5^2~82 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=19b68fb280e8304c9c78c179ec40fdcfee793754;p=u-boot 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 [fixed up to use 'puts' and LIBCOMMON:] Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- diff --git a/arch/arm/mach-rockchip/bootrom.c b/arch/arm/mach-rockchip/bootrom.c index 4ca9962310..8380e4e006 100644 --- a/arch/arm/mach-rockchip/bootrom.c +++ b/arch/arm/mach-rockchip/bootrom.c @@ -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(); }