[PATCH] [MTD] UBI: Remove ubi_ro_mode

Josh Boyer jwboyer at linux.vnet.ibm.com
Wed Feb 7 09:50:00 EST 2007


commit 021b3d2fdf21ce241c8cb65d0887a6c72513c7b4
Author: Josh Boyer <jwboyer at linux.vnet.ibm.com>
Date:   Wed Feb 7 08:46:20 2007 -0600

    [MTD] UBI: Remove ubi_ro_mode
    
    Remove a completely unused function
    
    Signed-off-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>

diff --git a/drivers/mtd/ubi/misc.c b/drivers/mtd/ubi/misc.c
index 1a80fc2..6cf76cc 100644
--- a/drivers/mtd/ubi/misc.c
+++ b/drivers/mtd/ubi/misc.c
@@ -102,13 +102,6 @@ int ubi_calc_data_len(const struct ubi_info *ubi, const uint8_t *buf,
 	return length;
 }
 
-void ubi_ro_mode(const struct ubi_info *ubi)
-{
-	ubi_bgt_disable(ubi);
-	ubi->io->ro_mode = 1;
-	ubi_warn("switched to read-only mode");
-}
-
 int check_volume(const struct ubi_info *ubi, int vol_id)
 {
 	void *buf;
diff --git a/drivers/mtd/ubi/misc.h b/drivers/mtd/ubi/misc.h
index f6f2ced..831a0d2 100644
--- a/drivers/mtd/ubi/misc.h
+++ b/drivers/mtd/ubi/misc.h
@@ -112,13 +112,6 @@ int ubi_calc_data_len(const struct ubi_info *ubi, const uint8_t *buf,
 		      size_t length);
 
 /**
- * ubi_ro_mode - switch UBI to read-only mode.
- *
- * @ubi: the UBI device description object
- */
-void ubi_ro_mode(const struct ubi_info *ubi);
-
-/**
  * check_volume - check the contents of a static volume.
  *
  * @ubi: the UBI device description object





More information about the linux-mtd mailing list