aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r--drivers/mtd/ubi/Kconfig3
-rw-r--r--drivers/mtd/ubi/cdev.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig
index 3e185e46cf6c..271a842f8c39 100644
--- a/drivers/mtd/ubi/Kconfig
+++ b/drivers/mtd/ubi/Kconfig
@@ -51,7 +51,8 @@ config MTD_UBI_BEB_LIMIT
51 MTD partitions of the same size, UBI will reserve 40 eraseblocks when 51 MTD partitions of the same size, UBI will reserve 40 eraseblocks when
52 attaching a partition. 52 attaching a partition.
53 53
54 This option can be overridden by the "mtd=" UBI module parameter. 54 This option can be overridden by the "mtd=" UBI module parameter or
55 by the "attach" ioctl.
55 56
56 Leave the default value if unsure. 57 Leave the default value if unsure.
57 58
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 619f9144f990..7885dc0934ce 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -1011,7 +1011,7 @@ static long ctrl_cdev_ioctl(struct file *file, unsigned int cmd,
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 req.max_beb_per1024);
1015 mutex_unlock(&ubi_devices_mutex); 1015 mutex_unlock(&ubi_devices_mutex);
1016 if (err < 0) 1016 if (err < 0)
1017 put_mtd_device(mtd); 1017 put_mtd_device(mtd);