summaryrefslogtreecommitdiff
path: root/common/cmd_vboot_twostop.c
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2011-07-27 01:41:41 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:15 -0700
commitc79695b8dc40ec82550d5d3a9bbe50908d4fddb7 (patch)
treea9402264ddaf973a65fdb7fe70d020b880007b54 /common/cmd_vboot_twostop.c
parente2a876ef38bb96ee41dd892895c0f1effe748e1e (diff)
Only compile in a call to lcd_clear if the LCD driver is configured in.
BUG=chrome-os-partner:4552 TEST=Build for coreboot Change-Id: Ie7153f3e415e5605457713efca64953d78fb23a6 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://gerrit.chromium.org/gerrit/4849 Reviewed-by: Stefan Reinauer <reinauer@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'common/cmd_vboot_twostop.c')
-rw-r--r--common/cmd_vboot_twostop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_vboot_twostop.c b/common/cmd_vboot_twostop.c
index 389c7c9837..a1ed311d00 100644
--- a/common/cmd_vboot_twostop.c
+++ b/common/cmd_vboot_twostop.c
@@ -707,7 +707,11 @@ int do_vboot_twostop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
* In normal mode, we don't need to load graphics driver and clear
* screen.
*/
+#ifdef CONFIG_LCD
lcd_clear();
+#else
+ printf("Would call lcd_clear, but the LCD driver isn't being used.\n");
+#endif
/*
* A processor reset jumps to the reset entry point (which is the