提交 f3d45ac2 编写于 作者: X Xiaoming Ni 提交者: Richard Weinberger

mtd: phram: Module parameters add writable permissions

The phram code implements managing multiple devices through a linked
list.
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
support.
Signed-off-by: NXiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 97ef08ae
......@@ -294,7 +294,7 @@ static int phram_param_call(const char *val, const struct kernel_param *kp)
#endif
}
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>\"");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册