From 975c14128d1d04d78c1345b4ebb0186b5f4de706 Mon Sep 17 00:00:00 2001 From: Suguru Saito Date: Sun, 28 Mar 2021 02:42:34 +0900 Subject: [PATCH] sharp: take care of warning --- board/sharp/common/lcd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/board/sharp/common/lcd.c b/board/sharp/common/lcd.c index c36a8fe258..d5abe637aa 100644 --- a/board/sharp/common/lcd.c +++ b/board/sharp/common/lcd.c @@ -49,10 +49,15 @@ void mxsfb_system_setup(void) struct mxs_clkctrl_regs *xtal = (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE; struct mxs_pwm_regs *pwm = (struct mxs_pwm_regs *)MXS_PWM_BASE; + +#ifndef CONFIG_BRAIN_2G int i, j; + uint8_t ili9805_mac = 0; +#else + int i; +#endif uint32_t valid_data; - uint8_t ili9805_mac = 0; lcd_config_t config = get_lcd_config(); valid_data = readl(&lcdif->hw_lcdif_ctrl1) &