diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-11-08 23:35:25 -0500 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-11-19 03:38:59 -0500 |
commit | 376563917c23ec8e1d30475233f1111b307fd18b (patch) | |
tree | 5ca75c5cf360b119445a1839bdce594305b8ff5b /drivers/mtd | |
parent | 789ccf17754fe95cdd4de3cae7afb09a9bb43c94 (diff) |
mtd: nand: denali: remove unused struct member totalblks, blksperchip
The denali->blksperchip is set, but not referenced any more. The
denali->totalblks is used only for calculating denali->blksperchip.
Both of them are unneeded.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/denali.c | 8 | ||||
-rw-r--r-- | drivers/mtd/nand/denali.h | 2 |
2 files changed, 0 insertions, 10 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index c525995f927c..98b21d230e62 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c | |||
@@ -1573,14 +1573,6 @@ int denali_init(struct denali_nand_info *denali) | |||
1573 | denali->nand.ecc.bytes *= denali->devnum; | 1573 | denali->nand.ecc.bytes *= denali->devnum; |
1574 | denali->nand.ecc.strength *= denali->devnum; | 1574 | denali->nand.ecc.strength *= denali->devnum; |
1575 | 1575 | ||
1576 | /* | ||
1577 | * Let driver know the total blocks number and how many blocks | ||
1578 | * contained by each nand chip. blksperchip will help driver to | ||
1579 | * know how many blocks is taken by FW. | ||
1580 | */ | ||
1581 | denali->totalblks = mtd->size >> denali->nand.phys_erase_shift; | ||
1582 | denali->blksperchip = denali->totalblks / denali->nand.numchips; | ||
1583 | |||
1584 | /* override the default read operations */ | 1576 | /* override the default read operations */ |
1585 | denali->nand.ecc.size = ECC_SECTOR_SIZE * denali->devnum; | 1577 | denali->nand.ecc.size = ECC_SECTOR_SIZE * denali->devnum; |
1586 | denali->nand.ecc.read_page = denali_read_page; | 1578 | denali->nand.ecc.read_page = denali_read_page; |
diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h index 7c0800d9dd4c..ea22191e8515 100644 --- a/drivers/mtd/nand/denali.h +++ b/drivers/mtd/nand/denali.h | |||
@@ -462,8 +462,6 @@ struct denali_nand_info { | |||
462 | int irq; | 462 | int irq; |
463 | 463 | ||
464 | uint32_t devnum; /* represent how many nands connected */ | 464 | uint32_t devnum; /* represent how many nands connected */ |
465 | uint32_t totalblks; | ||
466 | uint32_t blksperchip; | ||
467 | uint32_t bbtskipbytes; | 465 | uint32_t bbtskipbytes; |
468 | uint32_t max_banks; | 466 | uint32_t max_banks; |
469 | }; | 467 | }; |