This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / mtd / devices / lart.c
index dfd335e..f60195e 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * MTD driver for the 28F160F3 Flash Memory (non-CFI) on LART.
  *
- * $Id: lart.c,v 1.7 2004/08/09 13:19:44 dwmw2 Exp $
+ * $Id: lart.c,v 1.5 2003/05/20 21:03:07 dwmw2 Exp $
  *
  * Author: Abraham vd Merwe <abraham@2d3d.co.za>
  *
@@ -433,7 +433,7 @@ static int flash_erase (struct mtd_info *mtd,struct erase_info *instr)
         }
 
    instr->state = MTD_ERASE_DONE;
-   mtd_erase_callback(instr);
+   if (instr->callback) instr->callback (instr);
 
    return (0);
 }