mtd: docg3: remove unused function

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Jan 9 13:59:08 EST 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=e10019bce9cbeb7675d5d08221012a2cfee0d498
Commit:     e10019bce9cbeb7675d5d08221012a2cfee0d498
Parent:     f57eb5cc5394afb2a6f41da7509b794ed9ca5f6d
Author:     Robert Jarzmik <robert.jarzmik at free.fr>
AuthorDate: Fri Dec 16 23:25:23 2011 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Jan 9 18:18:51 2012 +0000

    mtd: docg3: remove unused function
    
    As the MTD api has no use for the number of erase cycles
    each block has endured, remove the function which calculated
    that value.
    
    If one day MTD api finds it usefull for wear levelling
    algorithms to have this information, the function should be
    put back in place.
    
    Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/devices/docg3.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 2a32072..22d5099 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -1037,6 +1037,7 @@ static int doc_block_isbad(struct mtd_info *mtd, loff_t from)
 	return !is_good;
 }
 
+#if 0
 /**
  * doc_get_erase_count - Get block erase count
  * @docg3: the device
@@ -1078,6 +1079,7 @@ static int doc_get_erase_count(struct docg3 *docg3, loff_t from)
 
 	return max(plane1_erase_count, plane2_erase_count);
 }
+#endif
 
 /**
  * doc_get_op_status - get erase/write operation status



More information about the linux-mtd-cvs mailing list