- mtd-make-mtdblock_ro-unconditionally-readonly.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     mtd: make mtdblock_ro unconditionally readonly

has been removed from the -mm tree.  Its filename is

     mtd-make-mtdblock_ro-unconditionally-readonly.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.


From: Joern Engel <joern@xxxxxxxxxxxxxxxxxxxx>

mtdblock_ro is by definition readonly.  Remove the silly checks.

Signed-off-by: Joern Engel <joern@xxxxxxxxxxxxxxxxxxxx>
Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/mtd/mtdblock_ro.c |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)

diff -puN drivers/mtd/mtdblock_ro.c~mtd-make-mtdblock_ro-unconditionally-readonly drivers/mtd/mtdblock_ro.c
--- 25/drivers/mtd/mtdblock_ro.c~mtd-make-mtdblock_ro-unconditionally-readonly	Thu Apr 13 15:45:36 2006
+++ 25-akpm/drivers/mtd/mtdblock_ro.c	Thu Apr 13 15:45:36 2006
@@ -45,9 +45,7 @@ static void mtdblock_add_mtd(struct 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);
 }
_

Patches currently in -mm which might be from joern@xxxxxxxxxxxxxxxxxxxx are

origin.patch
git-mtd.patch
mtd-improve-parameter-parsing-for-block2mtd.patch
mtd-improve-parameter-parsing-for-block2mtd-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux