Skip to content

Commit

Permalink
mtd: docg3: remove unused function
Browse files Browse the repository at this point in the history
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@free.fr>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Robert Jarzmik authored and David Woodhouse committed Jan 9, 2012
1 parent f57eb5c commit e10019b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mtd/devices/docg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e10019b

Please sign in to comment.