[ar71xx] add definitions for AR91xx specific DDR registers
[openwrt.git] / target / linux / generic-2.4 / patches / 009-mtd_uaccess.patch
1 Index: linux-2.4.35.4/drivers/mtd/mtdchar.c
2 ===================================================================
3 --- linux-2.4.35.4.orig/drivers/mtd/mtdchar.c
4 +++ linux-2.4.35.4/drivers/mtd/mtdchar.c
5 @@ -558,13 +558,13 @@ static void mtd_notify_add(struct mtd_in
6 sprintf(name, "%d", mtd->index);
7 devfs_rw_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
8 DEVFS_FL_DEFAULT, MTD_CHAR_MAJOR, mtd->index*2,
9 - S_IFCHR | S_IRUGO | S_IWUGO,
10 + S_IFCHR | S_IRUSR | S_IWUSR,
11 &mtd_fops, NULL);
12
13 sprintf(name, "%dro", mtd->index);
14 devfs_ro_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
15 DEVFS_FL_DEFAULT, MTD_CHAR_MAJOR, mtd->index*2+1,
16 - S_IFCHR | S_IRUGO,
17 + S_IFCHR | S_IRUSR,
18 &mtd_fops, NULL);
19 }
20
21 Index: linux-2.4.35.4/drivers/mtd/mtdblock.c
22 ===================================================================
23 --- linux-2.4.35.4.orig/drivers/mtd/mtdblock.c
24 +++ linux-2.4.35.4/drivers/mtd/mtdblock.c
25 @@ -601,7 +601,7 @@ static void mtd_notify_add(struct mtd_in
26 sprintf(name, "%d", mtd->index);
27 devfs_rw_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
28 DEVFS_FL_DEFAULT, MTD_BLOCK_MAJOR, mtd->index,
29 - S_IFBLK | S_IRUGO | S_IWUGO,
30 + S_IFBLK | S_IRUSR | S_IWUSR,
31 &mtd_fops, NULL);
32 }
33
This page took 0.049134 seconds and 5 git commands to generate.