aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2006-05-12 10:03:23 -0400
committerJarkko Lavinen <lavinen@pentafluge.infradead.org>2006-05-12 10:35:51 -0400
commit752870707f2818b5f0d94ca05e46cb0ffee6cbf9 (patch)
tree4daef328761c5bc00fe891718010ed5cbab81202
parent493c646077ef0b8668ed71b8057f81cb7454af87 (diff)
OneNAND: fix block command typo
We need to check block cmd only instead with comparing with cmd Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
-rw-r--r--drivers/mtd/onenand/onenand_base.c2
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);