]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
corvus: remove green led support
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 19 Nov 2025 17:01:12 +0000 (18:01 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 5 Dec 2025 19:38:09 +0000 (13:38 -0600)
green_led_on and green_led_off are only called by the legacy LED command
(CONFIG_LED_STATUS_CMD) when CONFIG_LED_STATUS_GREEN is enabled, both of
which aren't enabled for corvus, so let's simply remove it as it's dead
code.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Heiko Schocher <hs@nabladev.com>
board/siemens/corvus/board.c

index a8714e055d72eedb521b74259d42cc0cd3a38a88..670bcab484cafef75478e495531bf787bc6d9eae 100644 (file)
@@ -53,7 +53,6 @@ static void corvus_request_gpio(void)
        gpio_request(AT91_PIN_PB18, "SPICS1");
        gpio_request(AT91_PIN_PB3, "SPICS0");
        gpio_request(AT91_PIN_PD31, "red led"); /* this is the user1 led */
-       gpio_request(AT91_PIN_PD0, "green led"); /* this is the user2 led */
 }
 
 void red_led_on(void)
@@ -66,16 +65,6 @@ void red_led_off(void)
        gpio_set_value(AT91_PIN_PD31, 0);
 }
 
-void green_led_on(void)
-{
-       gpio_set_value(AT91_PIN_PD0, 0);
-}
-
-void green_led_off(void)
-{
-       gpio_set_value(AT91_PIN_PD0, 1);
-}
-
 static void corvus_nand_hw_init(void)
 {
        struct at91_smc *smc = (struct at91_smc *)ATMEL_BASE_SMC;