From cb80ff20f2c8392f19248418f9a19a0474661860 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Mon, 3 May 2021 16:48:58 -0400 Subject: bootstage: Eliminate when not enabled When we do not have bootstage enabled, rather than include an empty dummy function, we just don't reference it. This saves us space in some tight builds. This also shows a few cases where show_boot_progress was incorrectly guarded before. Cc: Simon Glass Signed-off-by: Tom Rini --- board/st/stv0991/stv0991.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/st/stv0991') diff --git a/board/st/stv0991/stv0991.c b/board/st/stv0991/stv0991.c index 3b0de82db28..57ca9f659c1 100644 --- a/board/st/stv0991/stv0991.c +++ b/board/st/stv0991/stv0991.c @@ -37,7 +37,7 @@ U_BOOT_DRVINFO(stv09911_serials) = { }; #endif -#ifdef CONFIG_SHOW_BOOT_PROGRESS +#if CONFIG_IS_ENABLED(BOOTSTAGE) void show_boot_progress(int progress) { printf("%i\n", progress); -- cgit v1.2.3