This is not used anymore, so drop it.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 net/bootp.c |  7 -------
 net/net.c   | 33 ---------------------------------
 2 files changed, 40 deletions(-)

diff --git a/net/bootp.c b/net/bootp.c
index 512ab2ed7c8..8a7806f3efc 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -19,9 +19,6 @@
 #include <linux/delay.h>
 #include <net/tftp.h>
 #include "bootp.h"
-#ifdef CONFIG_LED_STATUS
-#include <status_led.h>
-#endif
 #ifdef CONFIG_BOOTP_RANDOM_DELAY
 #include "net_rand.h"
 #endif
@@ -370,10 +367,6 @@ static void bootp_handler(uchar *pkt, unsigned dest, 
struct in_addr sip,
        /*
         *      Got a good BOOTP reply.  Copy the data into our variables.
         */
-#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
-       status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_OFF);
-#endif
-
        store_net_params(bp);           /* Store net parameters from reply */
 
        /* Retrieve extended information (we must parse the vendor area) */
diff --git a/net/net.c b/net/net.c
index 1e0b7c85624..fef214f2ebe 100644
--- a/net/net.c
+++ b/net/net.c
@@ -99,10 +99,6 @@
 #include <net/pcap.h>
 #endif
 #include <net/udp.h>
-#if defined(CONFIG_LED_STATUS)
-#include <miiphy.h>
-#include <status_led.h>
-#endif
 #include <watchdog.h>
 #include <linux/compiler.h>
 #include <test/test.h>
@@ -613,19 +609,6 @@ restart:
                break;
        }
 
-#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-#if    defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN)        && \
-       defined(CONFIG_LED_STATUS)                      && \
-       defined(CONFIG_LED_STATUS_RED)
-       /*
-        * Echo the inverted link state to the fault LED.
-        */
-       if (miiphy_link(eth_get_dev()->name, CONFIG_SYS_FAULT_MII_ADDR))
-               status_led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_OFF);
-       else
-               status_led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_ON);
-#endif /* CONFIG_SYS_FAULT_ECHO_LINK_DOWN, ... */
-#endif /* CONFIG_MII, ... */
 #ifdef CONFIG_USB_KEYBOARD
        net_busy_flag = 1;
 #endif
@@ -680,22 +663,6 @@ restart:
                    ((get_timer(0) - time_start) > time_delta)) {
                        thand_f *x;
 
-#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-#if    defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN)        && \
-       defined(CONFIG_LED_STATUS)                      && \
-       defined(CONFIG_LED_STATUS_RED)
-                       /*
-                        * Echo the inverted link state to the fault LED.
-                        */
-                       if (miiphy_link(eth_get_dev()->name,
-                                       CONFIG_SYS_FAULT_MII_ADDR))
-                               status_led_set(CONFIG_LED_STATUS_RED,
-                                              CONFIG_LED_STATUS_OFF);
-                       else
-                               status_led_set(CONFIG_LED_STATUS_RED,
-                                              CONFIG_LED_STATUS_ON);
-#endif /* CONFIG_SYS_FAULT_ECHO_LINK_DOWN, ... */
-#endif /* CONFIG_MII, ... */
                        debug_cond(DEBUG_INT_STATE, "--- net_loop timeout\n");
                        x = time_handler;
                        time_handler = (thand_f *)0;
-- 
2.43.0

Reply via email to