add broadcom b44 driver support
[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 2007-12-15 05:19:42.370835614 +0100
4 +++ linux-2.4.35.4/drivers/mtd/mtdchar.c 2007-12-15 05:19:50.539301109 +0100
5 @@ -558,13 +558,13 @@
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 2007-12-15 05:19:42.378836072 +0100
24 +++ linux-2.4.35.4/drivers/mtd/mtdblock.c 2007-12-15 05:19:50.539301109 +0100
25 @@ -601,7 +601,7 @@
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.042657 seconds and 5 git commands to generate.