aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/mtd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mtd/mtd.h')
-rw-r--r--include/linux/mtd/mtd.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 1e3887bc105c..2541fb848daa 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -353,15 +353,7 @@ int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs,
353 353
354void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size); 354void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size);
355 355
356#ifdef CONFIG_MTD_PARTITIONS
357void mtd_erase_callback(struct erase_info *instr); 356void mtd_erase_callback(struct erase_info *instr);
358#else
359static inline void mtd_erase_callback(struct erase_info *instr)
360{
361 if (instr->callback)
362 instr->callback(instr);
363}
364#endif
365 357
366/* 358/*
367 * Debugging macro and defines 359 * Debugging macro and defines