aboutsummaryrefslogtreecommitdiffstats
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 c51f04a00af..c7f484687fa 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -232,7 +232,7 @@ static ssize_t mtdchar_read(struct file *file, char __user *buf, size_t count,
232 break; 232 break;
233 } 233 }
234 default: 234 default:
235 ret = mtd->read(mtd, *ppos, len, &retlen, kbuf); 235 ret = mtd_read(mtd, *ppos, len, &retlen, kbuf);
236 } 236 }
237 /* Nand returns -EBADMSG on ECC errors, but it returns 237 /* Nand returns -EBADMSG on ECC errors, but it returns
238 * the data. For our userspace tools it is important 238 * the data. For our userspace tools it is important