projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux/generic: update patches for 2.6.36-rc4
[openwrt.git]
/
target
/
linux
/
generic
/
patches-2.6.35
/
065-rootfs_split.patch
diff --git
a/target/linux/generic/patches-2.6.35/065-rootfs_split.patch
b/target/linux/generic/patches-2.6.35/065-rootfs_split.patch
index
d70d183
..
ed23fbb
100644
(file)
--- a/
target/linux/generic/patches-2.6.35/065-rootfs_split.patch
+++ b/
target/linux/generic/patches-2.6.35/065-rootfs_split.patch
@@
-534,9
+534,9
@@
mutex_init(&dev->write_mutex);
+ rwlock_init(&dev->bdev_mutex);
mutex_init(&dev->write_mutex);
+ rwlock_init(&dev->bdev_mutex);
- if (!mtdname)
- mtdname = devname;
-@@ -29
8,6 +392
,7 @@ static struct block2mtd_dev *add_device(
+ /* Setup the MTD structure */
+ /* make the name contain the block device in */
+@@ -29
9,6 +393
,7 @@ static struct block2mtd_dev *add_device(
dev->mtd.read = block2mtd_read;
dev->mtd.priv = dev;
dev->mtd.owner = THIS_MODULE;
dev->mtd.read = block2mtd_read;
dev->mtd.priv = dev;
dev->mtd.owner = THIS_MODULE;
@@
-546,7
+546,7
@@
part->name = dev->mtd.name;
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
part->name = dev->mtd.name;
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
-@@ -1
8,6 +18
,7 @@
+@@ -1
9,6 +19
,7 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/compatmac.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/compatmac.h>
@@
-554,7
+554,7
@@
#include <asm/uaccess.h>
#include <asm/uaccess.h>
-@@ -8
14,6 +815,13 @@ static int mtd_ioctl(struct inode *inode
+@@ -8
26,6 +827,13 @@ static int mtd_ioctl(struct file *file,
file->f_pos = 0;
break;
}
file->f_pos = 0;
break;
}
@@
-570,7
+570,7
@@
ret = -ENOTTY;
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
ret = -ENOTTY;
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
-@@ -
101,6 +101
,7 @@ struct mtd_oob_ops {
+@@ -
98,6 +98
,7 @@ struct mtd_oob_ops {
uint8_t *oobbuf;
};
uint8_t *oobbuf;
};
@@
-578,7
+578,7
@@
struct mtd_info {
u_char type;
uint32_t flags;
struct mtd_info {
u_char type;
uint32_t flags;
-@@ -2
41,6 +242
,9 @@ struct mtd_info {
+@@ -2
38,6 +239
,9 @@ struct mtd_info {
struct device dev;
int usecount;
struct device dev;
int usecount;
This page took
0.019527 seconds
and
4
git commands to generate.