Call callback to support mtd tools
authorcharles <charles>
Wed, 17 Oct 2007 01:29:31 +0000 (01:29 +0000)
committercharles <charles>
Wed, 17 Oct 2007 01:29:31 +0000 (01:29 +0000)
mtdemul/nandemul2k.c

index 4d25aaa..bcbf16a 100644 (file)
@@ -568,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;