From: Kever Yang Date: Thu, 20 Aug 2020 09:31:16 +0000 (+0800) Subject: rockchip: rk3188: Fix the code support for SPL_LED X-Git-Tag: v2020.10~47^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2f8ba8a5f5b100f08118793743cfe5064b8c381;p=platform%2Fkernel%2Fu-boot.git rockchip: rk3188: Fix the code support for SPL_LED Fix the build error for the wrong code when CONFIG_SPL_LED is enabled. Signed-off-by: Kever Yang --- diff --git a/arch/arm/mach-rockchip/rk3188/rk3188.c b/arch/arm/mach-rockchip/rk3188/rk3188.c index 1b2f4a4..222953a 100644 --- a/arch/arm/mach-rockchip/rk3188/rk3188.c +++ b/arch/arm/mach-rockchip/rk3188/rk3188.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -105,6 +106,7 @@ int rk_board_late_init(void) } #ifdef CONFIG_SPL_BUILD +DECLARE_GLOBAL_DATA_PTR; static int setup_led(void) { #ifdef CONFIG_SPL_LED @@ -120,7 +122,7 @@ static int setup_led(void) debug("%s: get=%d\n", __func__, ret); return ret; } - ret = led_set_on(dev, 1); + ret = led_set_state(dev, LEDST_ON); if (ret) return ret; #endif