Patchwork [U-Boot,02/15] km/common/ivm: remove obsolete code

login
register
mail settings
Submitter Holger Brunck
Date Jan. 17, 2013, 12:47 p.m.
Message ID <1358426881-24117-3-git-send-email-holger.brunck@keymile.com>
Download mbox | patch
Permalink /patch/213248/
State Superseded
Delegated to: Kim Phillips
Headers show

Comments

Holger Brunck - Jan. 17, 2013, 12:47 p.m.
EEprom_ivm_addr isn't set in our environment, so remove the usage of
this.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
---
 board/keymile/common/ivm.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

Patch

diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c
index eaa924f..7fe3b0f 100644
--- a/board/keymile/common/ivm.c
+++ b/board/keymile/common/ivm.c
@@ -325,14 +325,6 @@  int ivm_read_eeprom(void)
 	}
 	i2c_set_bus_num(dev->busid);
 #endif
-
-	buf = (unsigned char *) getenv("EEprom_ivm_addr");
-	if (buf != NULL) {
-		ret = strict_strtoul((char *)buf, 16, &dev_addr);
-		if (ret != 0)
-			return -3;
-	}
-
 	/* add deblocking here */
 	i2c_make_abort();