led: Drop led_default_state()
This function is empty, drop it. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Cc: Sean Anderson <seanga2@gmail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Steven Lawrance <steven.lawrance@softathome.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
parent
0107469780
commit
69245e406e
19 changed files with 0 additions and 69 deletions
|
@ -418,7 +418,6 @@ int board_late_init(void)
|
||||||
int x, y;
|
int x, y;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
led_default_state();
|
|
||||||
splash_get_pos(&x, &y);
|
splash_get_pos(&x, &y);
|
||||||
bmp_display((ulong)&bmp_logo_bitmap[0], x, y);
|
bmp_display((ulong)&bmp_logo_bitmap[0], x, y);
|
||||||
|
|
||||||
|
|
|
@ -327,9 +327,6 @@ int board_late_init(void)
|
||||||
int ret;
|
int ret;
|
||||||
struct udevice *cdev;
|
struct udevice *cdev;
|
||||||
|
|
||||||
#ifdef CONFIG_LED_GPIO
|
|
||||||
led_default_state();
|
|
||||||
#endif
|
|
||||||
set_bootmode_env();
|
set_bootmode_env();
|
||||||
|
|
||||||
ret = uclass_get_device(UCLASS_PANEL, 0, &cdev);
|
ret = uclass_get_device(UCLASS_PANEL, 0, &cdev);
|
||||||
|
|
|
@ -607,9 +607,6 @@ int board_init(void)
|
||||||
|
|
||||||
board_init_fmc2();
|
board_init_fmc2();
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,6 @@ int board_late_init(void)
|
||||||
{
|
{
|
||||||
at91_prepare_cpu_var();
|
at91_prepare_cpu_var();
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,9 +183,6 @@ err_free:
|
||||||
|
|
||||||
int board_late_init(void)
|
int board_late_init(void)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
factory_data_env_config();
|
factory_data_env_config();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -128,8 +128,6 @@ int board_late_init(void)
|
||||||
u8 enetaddr[6];
|
u8 enetaddr[6];
|
||||||
char fdt[64];
|
char fdt[64];
|
||||||
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
/* Set board serial/model */
|
/* Set board serial/model */
|
||||||
if (!env_get("serial#"))
|
if (!env_get("serial#"))
|
||||||
env_set_ulong("serial#", eeprom_get_serial());
|
env_set_ulong("serial#", eeprom_get_serial());
|
||||||
|
|
|
@ -137,9 +137,6 @@ int board_late_init(void)
|
||||||
add_board_boot_modes(board_boot_modes);
|
add_board_boot_modes(board_boot_modes);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
env_set("boardname", "kp-tpc");
|
env_set("boardname", "kp-tpc");
|
||||||
env_set("boardsoc", "imx6q");
|
env_set("boardsoc", "imx6q");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -30,10 +30,6 @@ int board_early_init_r(void)
|
||||||
/* Address of boot parameters */
|
/* Address of boot parameters */
|
||||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
||||||
|
|
||||||
/* LED setup */
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,6 @@ int board_early_init_r(void)
|
||||||
/* Address of boot parameters */
|
/* Address of boot parameters */
|
||||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
||||||
|
|
||||||
/* LED setup */
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,10 +79,6 @@ int board_early_init_r(void)
|
||||||
/* Address of boot parameters */
|
/* Address of boot parameters */
|
||||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
||||||
|
|
||||||
/* LED setup */
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,6 @@ int board_early_init_r(void)
|
||||||
/* Address of boot parameters */
|
/* Address of boot parameters */
|
||||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
||||||
|
|
||||||
/* LED setup */
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,6 @@ int board_early_init_r(void)
|
||||||
/* Address of boot parameters */
|
/* Address of boot parameters */
|
||||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
||||||
|
|
||||||
/* LED setup */
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -360,9 +360,6 @@ int board_late_init(void)
|
||||||
struct src *psrc = (struct src *)SRC_BASE_ADDR;
|
struct src *psrc = (struct src *)SRC_BASE_ADDR;
|
||||||
u32 reg;
|
u32 reg;
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BK4r1 handle emergency/service SD card boot
|
* BK4r1 handle emergency/service SD card boot
|
||||||
* Checking the SBMR1 register BOOTCFG1 byte:
|
* Checking the SBMR1 register BOOTCFG1 byte:
|
||||||
|
|
|
@ -107,9 +107,6 @@ int dram_init(void)
|
||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -244,10 +244,6 @@ static int board_led_init(void)
|
||||||
u8 pca_led[2] = { 0x00, 0x00 };
|
u8 pca_led[2] = { 0x00, 0x00 };
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* init all GPIO LED's */
|
|
||||||
if (IS_ENABLED(CONFIG_LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
/* enable all leds on PCA9552 */
|
/* enable all leds on PCA9552 */
|
||||||
ret = uclass_get_device_by_seq(UCLASS_I2C, PCA9552_1_I2C_BUS, &bus);
|
ret = uclass_get_device_by_seq(UCLASS_I2C, PCA9552_1_I2C_BUS, &bus);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
|
@ -666,9 +666,6 @@ int board_init(void)
|
||||||
if (IS_ENABLED(CONFIG_ARMV7_NONSEC))
|
if (IS_ENABLED(CONFIG_ARMV7_NONSEC))
|
||||||
sysconf_init();
|
sysconf_init();
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(LED))
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
setup_led(LEDST_ON);
|
setup_led(LEDST_ON);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -66,12 +66,6 @@ int led_set_period(struct udevice *dev, int period_ms)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This is superseded by led_post_bind()/led_post_probe() below. */
|
|
||||||
int led_default_state(void)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int led_post_bind(struct udevice *dev)
|
static int led_post_bind(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct led_uc_plat *uc_plat = dev_get_uclass_plat(dev);
|
struct led_uc_plat *uc_plat = dev_get_uclass_plat(dev);
|
||||||
|
|
|
@ -110,13 +110,4 @@ enum led_state_t led_get_state(struct udevice *dev);
|
||||||
*/
|
*/
|
||||||
int led_set_period(struct udevice *dev, int period_ms);
|
int led_set_period(struct udevice *dev, int period_ms);
|
||||||
|
|
||||||
/**
|
|
||||||
* led_default_state() - set the default state for all the LED
|
|
||||||
*
|
|
||||||
* This enables all leds which have default state.
|
|
||||||
* see Documentation/devicetree/bindings/leds/common.txt
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
int led_default_state(void);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,9 +33,6 @@ static int dm_test_led_default_state(struct unit_test_state *uts)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
|
||||||
/* configure the default state (auto-probe) */
|
|
||||||
led_default_state();
|
|
||||||
|
|
||||||
/* Check that we handle the default-state property correctly. */
|
/* Check that we handle the default-state property correctly. */
|
||||||
ut_assertok(led_get_by_label("sandbox:default_on", &dev));
|
ut_assertok(led_get_by_label("sandbox:default_on", &dev));
|
||||||
ut_asserteq(LEDST_ON, led_get_state(dev));
|
ut_asserteq(LEDST_ON, led_get_state(dev));
|
||||||
|
|
Loading…
Reference in a new issue