X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fchips%2Fjedec.c;h=0b6e96f7ccfa3c767b76a631d899f8c7526bc217;hb=043471a130a8787b4b470bb4400b780bf615b019;hp=2dfd53ed39d2b07e6710a3868a33acef650bf794;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/mtd/chips/jedec.c b/drivers/mtd/chips/jedec.c index 2dfd53ed3..0b6e96f7c 100644 --- a/drivers/mtd/chips/jedec.c +++ b/drivers/mtd/chips/jedec.c @@ -11,7 +11,7 @@ * not going to guess how to send commands to them, plus I expect they will * all speak CFI.. * - * $Id: jedec.c,v 1.21 2004/08/09 13:19:43 dwmw2 Exp $ + * $Id: jedec.c,v 1.20 2004/07/12 14:03:01 dwmw2 Exp $ */ #include @@ -780,7 +780,8 @@ static int flash_erase(struct mtd_info *mtd, struct erase_info *instr) //printk("done\n"); instr->state = MTD_ERASE_DONE; - mtd_erase_callback(instr); + if (instr->callback) + instr->callback(instr); return 0; #undef flread