summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r--drivers/mtd/mtdchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index 00423cc85807..41d64ff4c252 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -731,7 +731,7 @@ static int mtdchar_ioctl(struct file *file, u_int cmd, u_long arg)
731 wq_head is no longer there when the 731 wq_head is no longer there when the
732 callback routine tries to wake us up. 732 callback routine tries to wake us up.
733 */ 733 */
734 ret = mtd->erase(mtd, erase); 734 ret = mtd_erase(mtd, erase);
735 if (!ret) { 735 if (!ret) {
736 set_current_state(TASK_UNINTERRUPTIBLE); 736 set_current_state(TASK_UNINTERRUPTIBLE);
737 add_wait_queue(&waitq, &wait); 737 add_wait_queue(&waitq, &wait);