diff options
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index 7697eda2d58c..24344ba3cfed 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c | |||
@@ -249,7 +249,7 @@ static ssize_t vol_cdev_read(struct file *file, __user char *buf, size_t count, | |||
249 | if (off + len >= vol->usable_leb_size) | 249 | if (off + len >= vol->usable_leb_size) |
250 | len = vol->usable_leb_size - off; | 250 | len = vol->usable_leb_size - off; |
251 | 251 | ||
252 | err = ubi_eba_read_leb(ubi, vol_id, lnum, tbuf, off, len, 0); | 252 | err = ubi_eba_read_leb(ubi, vol, lnum, tbuf, off, len, 0); |
253 | if (err) | 253 | if (err) |
254 | break; | 254 | break; |
255 | 255 | ||
@@ -339,7 +339,7 @@ static ssize_t vol_cdev_direct_write(struct file *file, const char __user *buf, | |||
339 | break; | 339 | break; |
340 | } | 340 | } |
341 | 341 | ||
342 | err = ubi_eba_write_leb(ubi, vol_id, lnum, tbuf, off, len, | 342 | err = ubi_eba_write_leb(ubi, vol, lnum, tbuf, off, len, |
343 | UBI_UNKNOWN); | 343 | UBI_UNKNOWN); |
344 | if (err) | 344 | if (err) |
345 | break; | 345 | break; |
@@ -484,7 +484,7 @@ static int vol_cdev_ioctl(struct inode *inode, struct file *file, | |||
484 | } | 484 | } |
485 | 485 | ||
486 | dbg_msg("erase LEB %d:%d", vol->vol_id, lnum); | 486 | dbg_msg("erase LEB %d:%d", vol->vol_id, lnum); |
487 | err = ubi_eba_unmap_leb(ubi, vol->vol_id, lnum); | 487 | err = ubi_eba_unmap_leb(ubi, vol, lnum); |
488 | if (err) | 488 | if (err) |
489 | break; | 489 | break; |
490 | 490 | ||