Age | Commit message (Collapse) | Author |
|
The function yaffs_get_mtd_device use wrong function to retrieve
mtd_info structure (using yaffs_get_mtd_device itself will cause
dead loop).
Use get_mtd_device to do this.
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
|
A few members of struct erase_info have been removed and no longer
used in mainline by the following commits. This patches removes
related useless initialization.
8f347c4232d5fc097599b711a3385722a6834005
"mtd: Unconditionally update ->fail_addr and ->addr in part_erase()"
884cfd9023ce6afe8bcf181ec988d8516eb32bf0
"mtd: Stop assuming mtd_erase() is asynchronous"
dcba51bbb9e0cc7f80d36eb20a033a4dff2ce9cc
"mtd: Get rid of unused fields in struct erase_info"
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
The nand.h has been renamed to rawnand.h by commit d4092d76a4a4 ("mtd:
nand: Rename nand.h into rawnand.h"), adjust the yaffs2 code according
to this change.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Without including major.h, yaffs2 fails to build with:
linux/fs/yaffs2/yaffs_mtdif.c:256:21: error: 'MTD_BLOCK_MAJOR' undeclared (first use in this function)
if (MAJOR(sdev) != MTD_BLOCK_MAJOR)
^
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
The initial integration of yaffs2 was via the single kernel version variant
of the code. That code has some fundamental issues, and isn't a suitable
base.
With this commit, we restore the multi kernel functionality and with it all
required include files.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Importing yaffs2 support from git://www.aleph1.co.uk/yaffs2 commit
ID 3a8580e503eed62cebb7b1b4fc3f3f4211010466.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|