summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorXiaoming Ni <nixiaoming@huawei.com>2019-07-14 05:57:18 +0200
committerRichard Weinberger <richard@nod.at>2019-09-15 23:50:38 +0200
commitf3d45ac21e464f24cb97b3f6cc68be8eef7f7b56 (patch)
tree9d458789ab3536bbf6f3e7194a35f752ec785c19 /drivers/mtd
parentmtd: pxa2xx: Use ioremap_cache insted of ioremap_cached (diff)
downloadlinux-f3d45ac21e464f24cb97b3f6cc68be8eef7f7b56.tar.xz
linux-f3d45ac21e464f24cb97b3f6cc68be8eef7f7b56.zip
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: Xiaoming Ni <nixiaoming@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/devices/phram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index c467286ca007..931e5c2481b5 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)
#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>\"");