X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=yaffs_mtdif.c;h=48d9058b8de06f25aa2cdf8db6c4c5c44323758b;hb=e33554a67753729f6b74677473cf0ec3b8d35a7e;hp=5de3193ea2b9bba34e104760a4ec23027d3487bf;hpb=0333f489a25b05a4c0176258204eee1db9e8c9e0;p=yaffs2.git diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c index 5de3193..48d9058 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_dev_to_mtd(dev); __u32 addr = ((loff_t) blockNumber) * dev->param.totalBytesPerChunk * dev->param.nChunksPerBlock;