X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fchips%2Famd_flash.c;h=ca710c78c6f3f9c47b78cf294580f44c5e54104a;hb=4df52aa9a6dd8cb5fff67da03cdfa58a3c607912;hp=1c1640ebecf27c222a5899435cd7c81d268712a2;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/mtd/chips/amd_flash.c b/drivers/mtd/chips/amd_flash.c index 1c1640ebe..ca710c78c 100644 --- a/drivers/mtd/chips/amd_flash.c +++ b/drivers/mtd/chips/amd_flash.c @@ -3,7 +3,7 @@ * * Author: Jonas Holmberg * - * $Id: amd_flash.c,v 1.25 2004/08/09 13:19:43 dwmw2 Exp $ + * $Id: amd_flash.c,v 1.24 2004/07/12 13:34:30 dwmw2 Exp $ * * Copyright (c) 2001 Axis Communications AB * @@ -1307,7 +1307,9 @@ static int amd_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; }