summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdoob.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdoob.c')
-rw-r--r--drivers/mtd/mtdoob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/mtdoob.c b/drivers/mtd/mtdoob.c
index be656a4..e4dd1a0 100644
--- a/drivers/mtd/mtdoob.c
+++ b/drivers/mtd/mtdoob.c
@@ -38,11 +38,12 @@ static struct mtd_info *to_mtd(struct cdev *cdev)
}
static ssize_t mtd_read_oob(struct cdev *cdev, void *buf, size_t count,
- ulong offset, ulong flags)
+ loff_t _offset, ulong flags)
{
struct mtd_info *mtd = to_mtd(cdev);
struct mtd_oob_ops ops;
int ret;
+ unsigned long offset = _offset;
if (count < mtd->oobsize)
return -EINVAL;