Commit 75287070 authored by Kyungmin Park's avatar Kyungmin Park Committed by Jarkko Lavinen

OneNAND: fix block command typo

We need to check block cmd only instead with comparing with cmd
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent 493c6460
......@@ -237,7 +237,7 @@ static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t le
value = onenand_block_address(this, block);
this->write_word(value, this->base + ONENAND_REG_START_ADDRESS1);
if (cmd == block_cmd) {
if (block_cmd) {
/* Select DataRAM for DDP */
value = onenand_bufferram_address(this, block);
this->write_word(value, this->base + ONENAND_REG_START_ADDRESS2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment