aboutsummaryrefslogtreecommitdiffstats
path: root/fs/yaffs2/yaffs_mtdif.c
AgeCommit message (Collapse)Author
2019-12-03yaffs: repair yaffs_get_mtd_deviceQuanyang Wang
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>
2019-07-22yaffs: Fix build failure by removing unused members of erase_infoHe Zhe
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>
2019-07-22yaffs2: include rawnand.h instead of nand.hKevin Hao
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>
2019-07-22yaffs2: fix MTD_BLOCK_MAJOR compilation errorBruce Ashfield
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>
2019-07-22yaffs2: restore multi-kernel version functionalityBruce Ashfield
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>
2019-07-22yaffs2: import 2013-git-3a8580Bruce Ashfield
Importing yaffs2 support from git://www.aleph1.co.uk/yaffs2 commit ID 3a8580e503eed62cebb7b1b4fc3f3f4211010466. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>