diff options
author | Marek Vasut <marex@denx.de> | 2015-11-10 20:53:21 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-21 21:50:21 -0500 |
commit | b7b2e3f74887beebc74fecf3a8468e1833351342 (patch) | |
tree | a0361afda06c9afd6ff605f48be9a1dab5b20837 /common | |
parent | ec7012e3d8f28b38af023739fdf2f40d1f963604 (diff) | |
download | u-boot-b7b2e3f74887beebc74fecf3a8468e1833351342.tar.gz u-boot-b7b2e3f74887beebc74fecf3a8468e1833351342.tar.xz u-boot-b7b2e3f74887beebc74fecf3a8468e1833351342.zip |
eeprom: Zap eeprom_probe()
Remove this function as it's no longer used.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_eeprom.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/common/cmd_eeprom.c b/common/cmd_eeprom.c index 266f954e6f..ea1d447f58 100644 --- a/common/cmd_eeprom.c +++ b/common/cmd_eeprom.c @@ -221,25 +221,6 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn return rcode; } -#if !defined(CONFIG_SPI) || defined(CONFIG_ENV_EEPROM_IS_ON_I2C) -int eeprom_probe(unsigned dev_addr, unsigned offset) -{ - unsigned char chip; - - /* Probe the chip address - */ -#if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X) - chip = offset >> 8; /* block number */ -#else - chip = offset >> 16; /* block number */ -#endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */ - - chip |= dev_addr; /* insert device address */ - - return (i2c_probe (chip)); -} -#endif - static int do_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { const char *const fmt = |