X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fchips%2Famd_flash.c;h=1c1640ebecf27c222a5899435cd7c81d268712a2;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=6606b93738146e31b32c7c4a73990c5ea181ada1;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/mtd/chips/amd_flash.c b/drivers/mtd/chips/amd_flash.c index 6606b9373..1c1640ebe 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.23 2003/06/12 09:24:13 dwmw2 Exp $ + * $Id: amd_flash.c,v 1.25 2004/08/09 13:19:43 dwmw2 Exp $ * * Copyright (c) 2001 Axis Communications AB * @@ -718,7 +718,7 @@ static struct mtd_info *amd_flash_probe(struct map_info *map) "memory for MTD erase region info\n", map->name); kfree(mtd); map->fldrv_priv = NULL; - return 0; + return NULL; } reg_idx = 0; @@ -1307,9 +1307,7 @@ static int amd_flash_erase(struct mtd_info *mtd, struct erase_info *instr) } instr->state = MTD_ERASE_DONE; - if (instr->callback) { - instr->callback(instr); - } + mtd_erase_callback(instr); return 0; }