From a4c3b40b33e41563077ea9ccbae7cac9d26ca38f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 10 Jan 2011 02:20:14 -0500 Subject: sf: unify read functions Signed-off-by: Mike Frysinger --- drivers/mtd/spi/sst.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'drivers/mtd/spi/sst.c') diff --git a/drivers/mtd/spi/sst.c b/drivers/mtd/spi/sst.c index d55055035cd..792d04dd2be 100644 --- a/drivers/mtd/spi/sst.c +++ b/drivers/mtd/spi/sst.c @@ -107,19 +107,6 @@ sst_disable_writing(struct spi_flash *flash) return ret; } -static int -sst_read_fast(struct spi_flash *flash, u32 offset, size_t len, void *buf) -{ - u8 cmd[5] = { - CMD_READ_ARRAY_FAST, - offset >> 16, - offset >> 8, - offset, - 0x00, - }; - return spi_flash_read_common(flash, cmd, sizeof(cmd), buf, len); -} - static int sst_byte_write(struct spi_flash *flash, u32 offset, const void *buf) { @@ -269,7 +256,6 @@ spi_flash_probe_sst(struct spi_slave *spi, u8 *idcode) stm->flash.write = sst_write; stm->flash.erase = sst_erase; - stm->flash.read = sst_read_fast; stm->flash.size = SST_SECTOR_SIZE * params->nr_sectors; printf("SF: Detected %s with page size %u, total ", -- cgit v1.2.3