mtd: change perm of module param phram to writable
diff mbox series

Message ID
State New
Headers show
  • mtd: change perm of module param phram to writable
Related show

Commit Message

Huaijie Yi Sept. 24, 2019, 8:03 a.m. UTC
we need param phram to be writable to create
multiple device under built-in case. As cmdline
could only set one device, and more devices must
be created by writing "<name>,<start>,<length>"
to /sys/module/phram/parameters/phram

Signed-off-by: Xiaoming Ni <>
Signed-off-by: Huaijie Yi <>
 drivers/mtd/devices/phram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index a5833dd..e3469ec 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -312,7 +312,7 @@  static int phram_param_call(const char *val, const struct kernel_param *kp)
-module_param_call(phram, phram_param_call, NULL, NULL, 000);
+module_param_call(phram, phram_param_call, NULL, NULL, 0200);
 MODULE_PARM_DESC(phram, "Memory region to map. \"phram=<name>,<start>,<length>\"");