OneNAND: fix block command typo

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri May 12 11:59:03 EDT 2006


commit 752870707f2818b5f0d94ca05e46cb0ffee6cbf9
tree 4daef328761c5bc00fe891718010ed5cbab81202
parent 493c646077ef0b8668ed71b8057f81cb7454af87
author Kyungmin Park <kyungmin.park at samsung.com> Fri, 12 May 2006 17:03:23 +0300
committer Jarkko Lavinen <lavinen at pentafluge.infradead.org> Fri, 12 May 2006 15:35:51 +0100

OneNAND: fix block command typo

We need to check block cmd only instead with comparing with cmd

Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>

 drivers/mtd/onenand/onenand_base.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 163c811..fe5b489 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_in
 		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);




More information about the linux-mtd-cvs mailing list