aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/build.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-01-10 07:56:43 -0500
committerRichard Weinberger <richard@nod.at>2017-05-08 14:48:17 -0400
commit997d30cb7490eb1ac37a3fb02a222fabf1f25fa9 (patch)
treee4bc486232b2e9f1e8cf1cc95fe007c8b0c9ed32 /drivers/mtd/ubi/build.c
parent435009d4064af72b283fdd47025cede4dfefc6d2 (diff)
ubi: Make mtd parameter readable
Fix permissions to allow read mtd parameter back (only for owner). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r--drivers/mtd/ubi/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 5b167339e87e..d1594a1b72e6 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -1470,7 +1470,7 @@ static int ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
1470 return 0; 1470 return 0;
1471} 1471}
1472 1472
1473module_param_call(mtd, ubi_mtd_param_parse, NULL, NULL, 000); 1473module_param_call(mtd, ubi_mtd_param_parse, NULL, NULL, 0400);
1474MODULE_PARM_DESC(mtd, "MTD devices to attach. Parameter format: mtd=<name|num|path>[,<vid_hdr_offs>[,max_beb_per1024[,ubi_num]]].\n" 1474MODULE_PARM_DESC(mtd, "MTD devices to attach. Parameter format: mtd=<name|num|path>[,<vid_hdr_offs>[,max_beb_per1024[,ubi_num]]].\n"
1475 "Multiple \"mtd\" parameters may be specified.\n" 1475 "Multiple \"mtd\" parameters may be specified.\n"
1476 "MTD devices may be specified by their number, name, or path to the MTD character device node.\n" 1476 "MTD devices may be specified by their number, name, or path to the MTD character device node.\n"