mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
rockchip: firefly-rk3288: 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 <kever.yang@rock-chips.com>
This commit is contained in:
@@ -5,9 +5,11 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
|
#include <led.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_BUILD
|
#ifdef CONFIG_SPL_BUILD
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
static int setup_led(void)
|
static int setup_led(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SPL_LED
|
#ifdef CONFIG_SPL_LED
|
||||||
@@ -23,7 +25,7 @@ static int setup_led(void)
|
|||||||
debug("%s: get=%d\n", __func__, ret);
|
debug("%s: get=%d\n", __func__, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ret = led_set_on(dev, 1);
|
ret = led_set_state(dev, LEDST_ON);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user