diff --git a/arch/sh/src/common/up_internal.h b/arch/sh/src/common/up_internal.h index cba4715bdd..9734ec51a7 100644 --- a/arch/sh/src/common/up_internal.h +++ b/arch/sh/src/common/up_internal.h @@ -230,7 +230,7 @@ extern void board_led_off(int led); /* Defined in board/up_lcd.c */ -#ifdef CONFIG_ARCH_LCD +#ifdef CONFIG_LCD_CONSOLE extern void up_lcdinit(void); extern void up_lcdputc(char ch); #else diff --git a/arch/sh/src/m16c/m16c_lowputc.c b/arch/sh/src/m16c/m16c_lowputc.c index 8d55d361f0..b88bc0baa6 100644 --- a/arch/sh/src/m16c/m16c_lowputc.c +++ b/arch/sh/src/m16c/m16c_lowputc.c @@ -333,11 +333,9 @@ void up_lowsetup(void) up_lowserialsetup() #endif - /* The LCD is initialized here to because it may be that the LCD is - * used for console output. - */ + /* The LCD is initialized here if the LCD is used for console output. */ -#ifdef CONFIG_ARCH_LCD +#ifdef CONFIG_LCD_CONSOLE up_lcdinit(); #endif }