diff options
author | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-23 10:10:00 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-23 10:10:00 -0400 |
commit | 2528e8cdf376d7da24647c442ec1e88c360d76ca (patch) | |
tree | 09df5f524085f4d12117fc81791bca10fa8a5f0e /drivers/mtd/mtdpart.c | |
parent | 9d8522df37f91621a70c5c0dbbf5bf2220b16798 (diff) |
[MTD] Remove readv/readv_ecc
These functions were never implemented and added only bloat to
partition and concat code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index ae675608fa91..f418920320d2 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c | |||
@@ -212,31 +212,6 @@ static int part_writev (struct mtd_info *mtd, const struct kvec *vecs, | |||
212 | to + part->offset, retlen); | 212 | to + part->offset, retlen); |
213 | } | 213 | } |
214 | 214 | ||
215 | static int part_readv (struct mtd_info *mtd, struct kvec *vecs, | ||
216 | unsigned long count, loff_t from, size_t *retlen) | ||
217 | { | ||
218 | struct mtd_part *part = PART(mtd); | ||
219 | if (part->master->readv_ecc == NULL) | ||
220 | return part->master->readv (part->master, vecs, count, | ||
221 | from + part->offset, retlen); | ||
222 | else | ||
223 | return part->master->readv_ecc (part->master, vecs, count, | ||
224 | from + part->offset, retlen, | ||
225 | NULL, &mtd->oobinfo); | ||
226 | } | ||
227 | |||
228 | static int part_readv_ecc (struct mtd_info *mtd, struct kvec *vecs, | ||
229 | unsigned long count, loff_t from, size_t *retlen, | ||
230 | u_char *eccbuf, struct nand_oobinfo *oobsel) | ||
231 | { | ||
232 | struct mtd_part *part = PART(mtd); | ||
233 | if (oobsel == NULL) | ||
234 | oobsel = &mtd->oobinfo; | ||
235 | return part->master->readv_ecc (part->master, vecs, count, | ||
236 | from + part->offset, retlen, | ||
237 | eccbuf, oobsel); | ||
238 | } | ||
239 | |||
240 | static int part_erase (struct mtd_info *mtd, struct erase_info *instr) | 215 | static int part_erase (struct mtd_info *mtd, struct erase_info *instr) |
241 | { | 216 | { |
242 | struct mtd_part *part = PART(mtd); | 217 | struct mtd_part *part = PART(mtd); |
@@ -425,10 +400,6 @@ int add_mtd_partitions(struct mtd_info *master, | |||
425 | } | 400 | } |
426 | if (master->writev) | 401 | if (master->writev) |
427 | slave->mtd.writev = part_writev; | 402 | slave->mtd.writev = part_writev; |
428 | if (master->readv) | ||
429 | slave->mtd.readv = part_readv; | ||
430 | if (master->readv_ecc) | ||
431 | slave->mtd.readv_ecc = part_readv_ecc; | ||
432 | if (master->lock) | 403 | if (master->lock) |
433 | slave->mtd.lock = part_lock; | 404 | slave->mtd.lock = part_lock; |
434 | if (master->unlock) | 405 | if (master->unlock) |