diff options
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 163c81135447..fe5b48997275 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -237,7 +237,7 @@ static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t le | |||
237 | value = onenand_block_address(this, block); | 237 | value = onenand_block_address(this, block); |
238 | this->write_word(value, this->base + ONENAND_REG_START_ADDRESS1); | 238 | this->write_word(value, this->base + ONENAND_REG_START_ADDRESS1); |
239 | 239 | ||
240 | if (cmd == block_cmd) { | 240 | if (block_cmd) { |
241 | /* Select DataRAM for DDP */ | 241 | /* Select DataRAM for DDP */ |
242 | value = onenand_bufferram_address(this, block); | 242 | value = onenand_bufferram_address(this, block); |
243 | this->write_word(value, this->base + ONENAND_REG_START_ADDRESS2); | 243 | this->write_word(value, this->base + ONENAND_REG_START_ADDRESS2); |