mtd: Stop updating erase_info->state and calling mtd_erase_callback()
[linux-2.6-microblaze.git] / drivers / mtd / devices / pmc551.c
index cadea06..5d842cb 100644 (file)
@@ -184,12 +184,10 @@ static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr)
        }
 
       out:
-       instr->state = MTD_ERASE_DONE;
 #ifdef CONFIG_MTD_PMC551_DEBUG
        printk(KERN_DEBUG "pmc551_erase() done\n");
 #endif
 
-       mtd_erase_callback(instr);
        return 0;
 }