diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/ubi/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c index cd6be981be3..16e67318acf 100644 --- a/drivers/mtd/ubi/block.c +++ b/drivers/mtd/ubi/block.c @@ -201,7 +201,7 @@ static int ubiblock_read(struct ubiblock *dev, char *buffer, int ret, leb, offset; int bytes_left = len; int to_read = len; - loff_t pos = sec << 9; + u64 pos = sec << 9; /* Get LEB:offset address to read from */ offset = do_div(pos, dev->leb_size); |