@@ -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) */
@@ -100,10 +100,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>
@@ -614,19 +610,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
@@ -684,22 +667,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;
This is not used anymore, so drop it. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) net/bootp.c | 7 ------- net/net.c | 33 --------------------------------- 2 files changed, 40 deletions(-)