mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mtd: m25p80: drop wait-till-ready checks
spi-nor.c should be taking care of these now. Signed-off-by: Brian Norris <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
This commit is contained in:
parent
dfa9c0cba4
commit
6af91949ab
2 changed files with 6 additions and 11 deletions
|
|
@ -129,16 +129,10 @@ static int m25p80_read(struct spi_nor *nor, loff_t from, size_t len,
|
|||
struct spi_transfer t[2];
|
||||
struct spi_message m;
|
||||
unsigned int dummy = nor->read_dummy;
|
||||
int ret;
|
||||
|
||||
/* convert the dummy cycles to the number of bytes */
|
||||
dummy /= 8;
|
||||
|
||||
/* Wait till previous write/erase is done. */
|
||||
ret = nor->wait_till_ready(nor);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
spi_message_init(&m);
|
||||
memset(t, 0, (sizeof t));
|
||||
|
||||
|
|
@ -168,11 +162,6 @@ static int m25p80_erase(struct spi_nor *nor, loff_t offset)
|
|||
dev_dbg(nor->dev, "%dKiB at 0x%08x\n",
|
||||
flash->mtd.erasesize / 1024, (u32)offset);
|
||||
|
||||
/* Wait until finished previous write command. */
|
||||
ret = nor->wait_till_ready(nor);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* Send write enable, then erase commands. */
|
||||
ret = nor->write_reg(nor, SPINOR_OP_WREN, NULL, 0, 0);
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue