OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f7c08d
)
Make mtdblock_ro unconditionally readonly
author
Jörn Engel
<joern@wohnheim.fh-wedel.de>
Thu, 13 Apr 2006 16:53:55 +0000
(18:53 +0200)
committer
David Woodhouse
<dwmw2@infradead.org>
Mon, 17 Apr 2006 14:48:16 +0000
(15:48 +0100)
mtdblock_ro is by definition readonly. Remove the silly checks.
Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdblock_ro.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdblock_ro.c
b/drivers/mtd/mtdblock_ro.c
index
0c830ba
..
29563ed
100644
(file)
--- a/
drivers/mtd/mtdblock_ro.c
+++ b/
drivers/mtd/mtdblock_ro.c
@@
-45,9
+45,7
@@
static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
dev->blksize = 512;
dev->size = mtd->size >> 9;
dev->tr = tr;
- if ((mtd->flags & (MTD_CLEAR_BITS|MTD_SET_BITS|MTD_WRITEABLE)) !=
- (MTD_CLEAR_BITS|MTD_SET_BITS|MTD_WRITEABLE))
- dev->readonly = 1;
+ dev->readonly = 1;
add_mtd_blktrans_dev(dev);
}