X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_mtdif.c;h=48d9058b8de06f25aa2cdf8db6c4c5c44323758b;hp=e073a5ef3539e5ffe76bb5ea1159dc1f862fc7ef;hb=e33554a67753729f6b74677473cf0ec3b8d35a7e;hpb=4a700fe570d217c2c5df87070db7c2652bc0eaaf diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c index e073a5e..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_DeviceToMtd(dev); + struct mtd_info *mtd = yaffs_dev_to_mtd(dev); __u32 addr = ((loff_t) blockNumber) * dev->param.totalBytesPerChunk * dev->param.nChunksPerBlock;