fix error in conditional define (and move it after header)
[yaffs2.git] / mtdemul / nandemul2k.c
index 6f10746e3e433f0752c7f5e39b240f517924e841..bcbf16ad1c9c6df641ca17beada59f27d3dcccdc 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * YAFFS: Yet another FFS. A NAND-flash specific file system. 
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
  *
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
  *   for Toby Churchill Ltd and Brightstar Engineering
  *
  * Created by Charles Manning <charles@aleph1.co.uk>
@@ -9,8 +9,9 @@
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
- *
- *
+ */
+
+/*
  *  This version hacked for emulating 2kpage NAND for YAFFS2 testing.
  */
 
@@ -567,7 +568,9 @@ static int nand_erase (struct mtd_info *mtd, struct erase_info *instr)
                block++;
        }
 
+       instr->state = MTD_ERASE_DONE;  * change state to ERASE_DONE */
 
+       instr->callback(instr);  * wake up */
 
        return 0;