projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d261c72
)
mtd: nand: add mtd->writebufsize initialization
author
Anatolij Gustschin
<agust@denx.de>
Thu, 16 Dec 2010 22:42:16 +0000
(23:42 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 6 Jan 2011 15:35:55 +0000
(15:35 +0000)
Initialize mtd->writebufsize to be equal to mtd->writesize.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index 5dd7ae4e4b239e58d8f71f4e1d58ff063e16edce..4915067379b872062bf9feee116f3e0e4de3b1b9 100644
(file)
--- a/
drivers/mtd/nand/nand_base.c
+++ b/
drivers/mtd/nand/nand_base.c
@@
-3439,6
+3439,7
@@
int nand_scan_tail(struct mtd_info *mtd)
mtd->resume = nand_resume;
mtd->block_isbad = nand_block_isbad;
mtd->block_markbad = nand_block_markbad;
+ mtd->writebufsize = mtd->writesize;
/* propagate ecc.layout to mtd_info */
mtd->ecclayout = chip->ecc.layout;