diff options
author | Jörn Engel <joern@wohnheim.fh-wedel.de> | 2006-04-13 16:54:34 (GMT) |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-04-17 14:48:17 (GMT) |
commit | a6c591eda3078f92e7a3ff3db55f6841e4819fb5 (patch) | |
tree | 1d1c2ab720bc9931f00b8cc177878a6ad8ec5651 /drivers/mtd/devices/slram.c | |
parent | af63a3bcac77d8c01f3d963bac11a6f3f9b7c473 (diff) | |
download | linux-a6c591eda3078f92e7a3ff3db55f6841e4819fb5.tar.xz |
Remove unchecked MTD flags
Several flags are set by some devices, but never checked. Remove them.
Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/devices/slram.c')
-rw-r--r-- | drivers/mtd/devices/slram.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/devices/slram.c b/drivers/mtd/devices/slram.c index 6faee6c..b3f665e 100644 --- a/drivers/mtd/devices/slram.c +++ b/drivers/mtd/devices/slram.c @@ -200,8 +200,7 @@ static int register_device(char *name, unsigned long start, unsigned long length (*curmtd)->mtdinfo->name = name; (*curmtd)->mtdinfo->size = length; - (*curmtd)->mtdinfo->flags = MTD_CLEAR_BITS | MTD_SET_BITS | - MTD_WRITEB_WRITEABLE | MTD_VOLATILE | MTD_CAP_RAM; + (*curmtd)->mtdinfo->flags = MTD_CAP_RAM; (*curmtd)->mtdinfo->erase = slram_erase; (*curmtd)->mtdinfo->point = slram_point; (*curmtd)->mtdinfo->unpoint = slram_unpoint; |