summaryrefslogtreecommitdiff
path: root/yaffs_mtdif.c
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2010-07-21 15:23:56 +1200
committerCharles Manning <cdhmanning@gmail.com>2010-07-21 15:23:56 +1200
commit4a700fe570d217c2c5df87070db7c2652bc0eaaf (patch)
treeaae6bbaf2904b651fd7603d1a29821c1f32c4df1 /yaffs_mtdif.c
parent25f6e492e7010f585367a4f6abf4d2e17c5c0e1a (diff)
yaffs Refactor yaffs direct device list management, add nand abstraction, divide up test code
This all makes for a far cleaner layout of test code. The new yaffs direct list management allows partitions to be added synamically rather than statically. This is better for OSs that install partitions at runtime (eg. WInCE). The nand abstraction makes it tidier to add a new nand driver to yaffs direct and test code. The test code has been repartitioned to make porting and file management cleaner. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_mtdif.c')
-rw-r--r--yaffs_mtdif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c
index 5de3193..e073a5e 100644
--- a/yaffs_mtdif.c
+++ b/yaffs_mtdif.c
@@ -25,7 +25,7 @@
int nandmtd_EraseBlockInNAND(yaffs_Device *dev, int blockNumber)
{
- struct mtd_info *mtd = yaffs_DeviceToContext(dev)->mtd;
+ struct mtd_info *mtd = yaffs_DeviceToMtd(dev);
__u32 addr =
((loff_t) blockNumber) * dev->param.totalBytesPerChunk
* dev->param.nChunksPerBlock;