Skip to contentSkip to conversation

ARM: Remove unused CONFIG_DRIVER_SMC91111, CONFIG_DRIVER_LAN91C96

PATCH New Ashok Kumar Reddy 1 participant 1 message Oct 15, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Remove unused CONFIG_DRIVER_SMC91111, CONFIG_DRIVER_LAN91C96

Remove unused CONFIG_DRIVER_SMC91111,CONFIG_DRIVER_LAN91C96, if required implement smc_set_mac_add() in board init.

---
  arch/arm/lib/board.c |   17 -----------------
  1 file changed, 17 deletions(-)
arch/arm/lib/board.c +0 -17
index 109a1ac..cb71b02 100644
@@ -57,13 +57,6 @@
  #include <miiphy.h>
  #endif
 
-#ifdef CONFIG_DRIVER_SMC91111
-#include "../drivers/net/smc91111.h"
-#endif
-#ifdef CONFIG_DRIVER_LAN91C96
-#include "../drivers/net/lan91c96.h"
-#endif
-
  DECLARE_GLOBAL_DATA_PTR;
 
  ulong monitor_flash_len;
@@ -593,16 +586,6 @@ void board_init_r(gd_t *id, ulong dest_addr)
  	/* enable exceptions */
  	enable_interrupts();
 
-	/* Perform network card initialisation if necessary */
-#if defined(CONFIG_DRIVER_SMC91111) || defined (CONFIG_DRIVER_LAN91C96)
-	/* XXX: this needs to be moved to board init */
-	if (getenv("ethaddr")) {
-		uchar enetaddr[6];
-		eth_getenv_enetaddr("ethaddr", enetaddr);
-		smc_set_mac_addr(enetaddr);
-	}
-#endif /* CONFIG_DRIVER_SMC91111 || CONFIG_DRIVER_LAN91C96 */
-
  	/* Initialize from environment */
  	load_addr = getenv_ulong("loadaddr", 16, load_addr);
 
Signature · 1 line
1.7.9.5