diff options
author | Tom Rini | 2021-05-03 16:48:58 -0400 |
---|---|---|
committer | Tom Rini | 2021-07-07 10:17:54 -0400 |
commit | cb80ff20f2c8392f19248418f9a19a0474661860 (patch) | |
tree | a4a4ca65c3d6bb8331c0ba9746f300d9709abf7c /board/bosch/shc | |
parent | c48b781581f6c3b24cb40241e90296b0e7f7a30f (diff) |
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 <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/bosch/shc')
-rw-r--r-- | board/bosch/shc/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/bosch/shc/board.c b/board/bosch/shc/board.c index 86356e38751..13fd25e4071 100644 --- a/board/bosch/shc/board.c +++ b/board/bosch/shc/board.c @@ -188,7 +188,7 @@ static void __maybe_unused leds_set_booting(void) /* * Function to set the LEDs in the state "Bootloader error" */ -static void leds_set_failure(int state) +static void __maybe_unused leds_set_failure(int state) { #if defined(CONFIG_B_SAMPLE) /* Turn all blue and green LEDs off */ @@ -479,7 +479,7 @@ int board_eth_init(struct bd_info *bis) } #endif -#ifdef CONFIG_SHOW_BOOT_PROGRESS +#if CONFIG_IS_ENABLED(BOOTSTAGE) static void bosch_check_reset_pin(void) { if (readl(GPIO1_BASE + OMAP_GPIO_IRQSTATUS_SET_0) & RESET_MASK) { @@ -525,9 +525,9 @@ void show_boot_progress(int val) break; } } +#endif void arch_preboot_os(void) { leds_set_finish(); } -#endif |