refresh patches
[openwrt.git] / target / linux / generic-2.4 / patches / 009-mtd_uaccess.patch
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,
9 &mtd_fops, NULL);
10
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,
14 - S_IFCHR | S_IRUGO,
15 + S_IFCHR | S_IRUSR,
16 &mtd_fops, NULL);
17 }
18
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,
27 &mtd_fops, NULL);
28 }
29
This page took 0.045577 seconds and 5 git commands to generate.