Skip to content

Commit

Permalink
OneNAND: fix block command typo
Browse files Browse the repository at this point in the history
We need to check block cmd only instead with comparing with cmd

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
  • Loading branch information
kyungmin-park authored and Jarkko Lavinen committed May 12, 2006
1 parent 493c646 commit 7528707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7528707

Please sign in to comment.