diff options
Diffstat (limited to 'drivers/mtd/ubi/debug.c')
-rw-r--r-- | drivers/mtd/ubi/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c index ab80c0debac8..e2cdebf40840 100644 --- a/drivers/mtd/ubi/debug.c +++ b/drivers/mtd/ubi/debug.c | |||
@@ -216,7 +216,7 @@ void ubi_dbg_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) | |||
216 | buf = vmalloc(len); | 216 | buf = vmalloc(len); |
217 | if (!buf) | 217 | if (!buf) |
218 | return; | 218 | return; |
219 | err = ubi->mtd->read(ubi->mtd, addr, len, &read, buf); | 219 | err = mtd_read(ubi->mtd, addr, len, &read, buf); |
220 | if (err && err != -EUCLEAN) { | 220 | if (err && err != -EUCLEAN) { |
221 | ubi_err("error %d while reading %d bytes from PEB %d:%d, " | 221 | ubi_err("error %d while reading %d bytes from PEB %d:%d, " |
222 | "read %zd bytes", err, len, pnum, offset, read); | 222 | "read %zd bytes", err, len, pnum, offset, read); |