projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab4d8e9
)
drivers: rk_nand: modify write permissions for proc files
author
Zhaoyifeng
<zyf@rock-chips.com>
Wed, 21 Jun 2017 01:56:17 +0000
(09:56 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Wed, 21 Jun 2017 07:11:31 +0000
(15:11 +0800)
modify "rknand" and "mtd" write permissions, read only.
Change-Id: Ib5b35059c5f075b1bade4400e1bf846222ae9a49
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
drivers/rk_nand/rk_nand_blk.c
patch
|
blob
|
history
diff --git
a/drivers/rk_nand/rk_nand_blk.c
b/drivers/rk_nand/rk_nand_blk.c
index f5bce81b94420696f25f08029195e1cfffc72681..9ef3c6a582350216f683d9424650f7d231478f9b 100644
(file)
--- a/
drivers/rk_nand/rk_nand_blk.c
+++ b/
drivers/rk_nand/rk_nand_blk.c
@@
-103,12
+103,12
@@
static int rknand_create_procfs(void)
{
struct proc_dir_entry *ent;
- ent = proc_create_data("rknand", 0
x666
, NULL, &rknand_proc_fops,
+ ent = proc_create_data("rknand", 0
444
, NULL, &rknand_proc_fops,
(void *)0);
if (!ent)
return -1;
- ent = proc_create_data("mtd", 0
x666
, NULL, &rknand_mtd_proc_fops,
+ ent = proc_create_data("mtd", 0
444
, NULL, &rknand_mtd_proc_fops,
(void *)0);
if (!ent)
return -1;