mtd: introduce mtd_read interface
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:

committed by
David Woodhouse

parent
04c601bfa4
commit
329ad399a9
@@ -232,7 +232,7 @@ static ssize_t mtdchar_read(struct file *file, char __user *buf, size_t count,
|
||||
break;
|
||||
}
|
||||
default:
|
||||
ret = mtd->read(mtd, *ppos, len, &retlen, kbuf);
|
||||
ret = mtd_read(mtd, *ppos, len, &retlen, kbuf);
|
||||
}
|
||||
/* Nand returns -EBADMSG on ECC errors, but it returns
|
||||
* the data. For our userspace tools it is important
|
||||
|
Reference in New Issue
Block a user