diff options
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) |