aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/cdev.c
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2012-08-20 12:00:11 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-09-04 02:39:01 -0400
commit256334c3191af9d9e520082db9beb75ff801d86c (patch)
tree55e209de188658b9b23022ee1d0493f62424c738 /drivers/mtd/ubi/cdev.c
parent5993f9b7380d77fd23f5402dcfb701aedb327ffe (diff)
UBI: prepare for max_beb_per1024 module parameter addition
This patch prepare the way for the addition of max_beb_per1024 module parameter. There's no functional change. Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r--drivers/mtd/ubi/cdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index fb5567878181..619f9144f990 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -1010,7 +1010,8 @@ static long ctrl_cdev_ioctl(struct file *file, unsigned int cmd,
1010 * 'ubi_attach_mtd_dev()'. 1010 * 'ubi_attach_mtd_dev()'.
1011 */ 1011 */
1012 mutex_lock(&ubi_devices_mutex); 1012 mutex_lock(&ubi_devices_mutex);
1013 err = ubi_attach_mtd_dev(mtd, req.ubi_num, req.vid_hdr_offset); 1013 err = ubi_attach_mtd_dev(mtd, req.ubi_num, req.vid_hdr_offset,
1014 CONFIG_MTD_UBI_BEB_LIMIT);
1014 mutex_unlock(&ubi_devices_mutex); 1015 mutex_unlock(&ubi_devices_mutex);
1015 if (err < 0) 1016 if (err < 0)
1016 put_mtd_device(mtd); 1017 put_mtd_device(mtd);