1 --- a/drivers/mtd/mtdchar.c
2 +++ b/drivers/mtd/mtdchar.c
3 @@ -558,13 +558,13 @@ static void mtd_notify_add(struct mtd_in
4 sprintf(name, "%d", mtd->index);
5 devfs_rw_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
6 DEVFS_FL_DEFAULT, MTD_CHAR_MAJOR, mtd->index*2,
7 - S_IFCHR | S_IRUGO | S_IWUGO,
8 + S_IFCHR | S_IRUSR | S_IWUSR,
11 sprintf(name, "%dro", mtd->index);
12 devfs_ro_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
13 DEVFS_FL_DEFAULT, MTD_CHAR_MAJOR, mtd->index*2+1,
19 --- a/drivers/mtd/mtdblock.c
20 +++ b/drivers/mtd/mtdblock.c
21 @@ -601,7 +601,7 @@ static void mtd_notify_add(struct mtd_in
22 sprintf(name, "%d", mtd->index);
23 devfs_rw_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
24 DEVFS_FL_DEFAULT, MTD_BLOCK_MAJOR, mtd->index,
25 - S_IFBLK | S_IRUGO | S_IWUGO,
26 + S_IFBLK | S_IRUSR | S_IWUSR,