All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [MTD] UBI: Remove ubi_ro_mode
@ 2007-02-07 14:50 Josh Boyer
  0 siblings, 0 replies; only message in thread
From: Josh Boyer @ 2007-02-07 14:50 UTC (permalink / raw)
  To: dedekind; +Cc: linux-mtd

commit 021b3d2fdf21ce241c8cb65d0887a6c72513c7b4
Author: Josh Boyer <jwboyer@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@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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-07 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-07 14:50 [PATCH] [MTD] UBI: Remove ubi_ro_mode Josh Boyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.