diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2007-01-31 06:25:21 +0100 |
---|---|---|
committer | Kyungmin Park <kyungmin.park@samsung.com> | 2007-01-31 06:25:21 +0100 |
commit | 9bfbc9b24f663b15149874a94a69ba89b3b7e44c (patch) | |
tree | e2d62964745439feccea110375e97bce2a0ae60e /drivers/mtd/onenand | |
parent | [MTD] OneNAND: Amend write-verify to compare to original buffer (diff) | |
download | linux-9bfbc9b24f663b15149874a94a69ba89b3b7e44c.tar.xz linux-9bfbc9b24f663b15149874a94a69ba89b3b7e44c.zip |
[MTD] OneNAND: Remove unused fields
- Remove unused fields
- Fix typo
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 65acb85830d3..daf298948b9b 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -1966,13 +1966,12 @@ static int onenand_probe(struct mtd_info *mtd) /* The data buffer size is equal to page size */ mtd->writesize = this->read_word(this->base + ONENAND_REG_DATA_BUFFER_SIZE); mtd->oobsize = mtd->writesize >> 5; - /* Pagers per block is always 64 in OneNAND */ + /* Pages per a block are always 64 in OneNAND */ mtd->erasesize = mtd->writesize << 6; this->erase_shift = ffs(mtd->erasesize) - 1; this->page_shift = ffs(mtd->writesize) - 1; - this->ppb_shift = (this->erase_shift - this->page_shift); - this->page_mask = (mtd->erasesize / mtd->writesize) - 1; + this->page_mask = (1 << (this->erase_shift - this->page_shift)) - 1; /* REVIST: Multichip handling */ |