X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_mtdif.c;h=e073a5ef3539e5ffe76bb5ea1159dc1f862fc7ef;hp=4fc765ce38a467550487a998b432582a0388a80c;hb=1996f7866c793b99020d2d204d522291609e9fbb;hpb=c40fdc4bd58a06dd160a9a967bbbdc5c5406e090 diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c index 4fc765c..e073a5e 100644 --- a/yaffs_mtdif.c +++ b/yaffs_mtdif.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2007 Aleph One Ltd. + * Copyright (C) 2002-2010 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -11,9 +11,6 @@ * published by the Free Software Foundation. */ -const char *yaffs_mtdif_c_version = - "$Id: yaffs_mtdif.c,v 1.25 2010-02-19 01:06:31 charles Exp $"; - #include "yportenv.h" @@ -28,7 +25,7 @@ const char *yaffs_mtdif_c_version = 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;