Lines Matching refs:mtd
14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/map.h>
16 #include <linux/mtd/partitions.h>
38 struct mtd_info *mtd;
83 info->mtd = do_map_probe(flash->map_name, &info->map);
85 if (!info->mtd) {
92 info->mtd->dev.parent = &pdev->dev;
94 mtd_device_parse_register(info->mtd, probes, NULL, flash->parts,
105 mtd_device_unregister(info->mtd);
107 map_destroy(info->mtd);
119 if (info && mtd_suspend(info->mtd) == 0)
120 mtd_resume(info->mtd);