mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
drivers: rk_nand: modify write permissions for proc files
modify "rknand" and "mtd" write permissions, read only. Change-Id: Ib5b35059c5f075b1bade4400e1bf846222ae9a49 Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
This commit is contained in:
parent
ab4d8e9a7b
commit
779bec37f5
|
|
@ -103,12 +103,12 @@ static int rknand_create_procfs(void)
|
|||
{
|
||||
struct proc_dir_entry *ent;
|
||||
|
||||
ent = proc_create_data("rknand", 0x666, NULL, &rknand_proc_fops,
|
||||
ent = proc_create_data("rknand", 0444, NULL, &rknand_proc_fops,
|
||||
(void *)0);
|
||||
if (!ent)
|
||||
return -1;
|
||||
|
||||
ent = proc_create_data("mtd", 0x666, NULL, &rknand_mtd_proc_fops,
|
||||
ent = proc_create_data("mtd", 0444, NULL, &rknand_mtd_proc_fops,
|
||||
(void *)0);
|
||||
if (!ent)
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user