diff options
| author | heyuanjie87 <[email protected]> | 2018-09-20 09:41:05 +0800 |
|---|---|---|
| committer | heyuanjie87 <[email protected]> | 2018-09-20 09:41:05 +0800 |
| commit | b620c1001423f4724079963f815bcf7a64d490a8 (patch) | |
| tree | eb42ca0626a1a5b40888ba7ec61b4a52f6f27812 /components/drivers/mtd | |
| parent | 3e71dc88f36de0f76a6f5e672cfaee39a539b137 (diff) | |
更改许可
Diffstat (limited to 'components/drivers/mtd')
| -rw-r--r-- | components/drivers/mtd/mtdnand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/drivers/mtd/mtdnand.c b/components/drivers/mtd/mtdnand.c index 48d1870af1..c209ea3279 100644 --- a/components/drivers/mtd/mtdnand.c +++ b/components/drivers/mtd/mtdnand.c @@ -601,7 +601,7 @@ static const struct mtd_ops _ops = nand_block_markbad, }; -int rt_mtd_nand_init(rt_nand_t *nand, int blk_size, int page_size, int blks_pc, int oob_size) +int rt_mtd_nand_init(rt_nand_t *nand, int blk_size, int page_size, int oob_size) { uint8_t *buf; @@ -616,7 +616,6 @@ int rt_mtd_nand_init(rt_nand_t *nand, int blk_size, int page_size, int blks_pc, nand->buffers.ecccode = buf; nand->pagebuf = 0; /* alloc when unaligen access */ - nand->size = blk_size * blks_pc; nand->pages_pb = blk_size / page_size; nand->ecc._step = page_size / nand->ecc.stepsize; nand->page_size = page_size; |
