mtd: phram: Module parameters add writable permissions
diff mbox series

Message ID
State New
Headers show
  • mtd: phram: Module parameters add writable permissions
Related show

Commit Message

Xiaoming Ni July 14, 2019, 3:57 a.m. UTC
The phram code implements managing multiple devices through a linked
However, due to the module parameter permission of 0, the
/sys/module/phram/parameters/phram interface is missing.
The command line arguments in insmod can only create one device.

Therefore, add writable permissions to the module parameters, create
/sys/module/phram/parameters/phram interface, and create multi-device

Signed-off-by: Xiaoming Ni <>
 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 c467286..931e5c2 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -294,7 +294,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>\"");