Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68641
b: refs/heads/master
c: 3cd3a86
h: refs/heads/master
i:
  68639: d2d8347
v: v3
  • Loading branch information
Adrian Hunter authored and David Woodhouse committed Oct 14, 2007
1 parent 399957d commit 99cceeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30a7eb298af849bae3050e0a3f4c130995da22b0
refs/heads/master: 3cd3a86b6fdcb80ad097850a0990bcf6251422fe
7 changes: 4 additions & 3 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1711,13 +1711,14 @@ static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr)
erase_exit:

ret = instr->state == MTD_ERASE_DONE ? 0 : -EIO;
/* Do call back function */
if (!ret)
mtd_erase_callback(instr);

/* Deselect and wake up anyone waiting on the device */
onenand_release_device(mtd);

/* Do call back function */
if (!ret)
mtd_erase_callback(instr);

return ret;
}

Expand Down

0 comments on commit 99cceeb

Please sign in to comment.