OneNAND: fix block command typo
authorKyungmin Park <kyungmin.park@samsung.com>
Fri, 12 May 2006 14:03:23 +0000 (17:03 +0300)
committerJarkko Lavinen <lavinen@pentafluge.infradead.org>
Fri, 12 May 2006 14:35:51 +0000 (15:35 +0100)
We need to check block cmd only instead with comparing with cmd

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/mtd/onenand/onenand_base.c

index 163c81135447973e5f003fda9b2c84cc4e287940..fe5b48997275a34e5a4182a153367886c8437a81 100644 (file)
@@ -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);