012-export_erase_write.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. Index: linux-2.6.30.10/drivers/mtd/mtdblock.c
  2. ===================================================================
  3. --- linux-2.6.30.10.orig/drivers/mtd/mtdblock.c 2010-03-19 00:17:37.000000000 +0100
  4. +++ linux-2.6.30.10/drivers/mtd/mtdblock.c 2010-03-19 00:17:54.000000000 +0100
  5. @@ -45,7 +45,7 @@
  6. wake_up(wait_q);
  7. }
  8. -static int erase_write (struct mtd_info *mtd, unsigned long pos,
  9. +int erase_write (struct mtd_info *mtd, unsigned long pos,
  10. int len, const char *buf)
  11. {
  12. struct erase_info erase;
  13. Index: linux-2.6.30.10/include/linux/mtd/mtd.h
  14. ===================================================================
  15. --- linux-2.6.30.10.orig/include/linux/mtd/mtd.h 2010-03-19 00:17:42.000000000 +0100
  16. +++ linux-2.6.30.10/include/linux/mtd/mtd.h 2010-03-19 00:21:22.000000000 +0100
  17. @@ -319,6 +319,10 @@
  18. int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs,
  19. unsigned long count, loff_t from, size_t *retlen);
  20. +int erase_write (struct mtd_info *mtd, unsigned long pos,
  21. + int len, const char *buf);
  22. +
  23. +
  24. #ifdef CONFIG_MTD_PARTITIONS
  25. void mtd_erase_callback(struct erase_info *instr);
  26. #else