]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] OneNAND: Remove unused fields
authorKyungmin Park <kyungmin.park@samsung.com>
Wed, 31 Jan 2007 05:25:21 +0000 (14:25 +0900)
committerKyungmin Park <kyungmin.park@samsung.com>
Wed, 31 Jan 2007 05:25:21 +0000 (14:25 +0900)
- Remove unused fields
- Fix typo

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

index 65acb85830d38cda0e55fa0f216a8622ef8f2407..daf298948b9b04c2f4b957baef8417dadc5cb543 100644 (file)
@@ -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 */
 
index 60b3534de74dbeb7bbf72a46d9f5315eefc796f2..a5e6c4bf7af32263375c4f10e9f86b57abe9ee12 100644 (file)
@@ -63,7 +63,6 @@ struct onenand_bufferram {
  *                     partly be set to inform onenand_scan about
  * @erase_shift:       [INTERN] number of address bits in a block
  * @page_shift:                [INTERN] number of address bits in a page
- * @ppb_shift:         [INTERN] number of address bits in a pages per block
  * @page_mask:         [INTERN] a page per block mask
  * @bufferram_index:   [INTERN] BufferRAM index
  * @bufferram:         [INTERN] BufferRAM info
@@ -103,7 +102,6 @@ struct onenand_chip {
 
        unsigned int            erase_shift;
        unsigned int            page_shift;
-       unsigned int            ppb_shift;      /* Pages per block shift */
        unsigned int            page_mask;
 
        unsigned int            bufferram_index;