Lines Matching defs:mtd
2 /* drivers/mtd/maps/plat-ram.c
20 #include <linux/mtd/mtd.h>
21 #include <linux/mtd/map.h>
22 #include <linux/mtd/partitions.h>
23 #include <linux/mtd/plat-ram.h>
27 /* private structure for each mtd platform ram device created */
31 struct mtd_info *mtd;
77 if (info->mtd) {
78 mtd_device_unregister(info->mtd);
79 map_destroy(info->mtd);
149 dev_dbg(&pdev->dev, "initialised map, probing for mtd\n");
151 /* probe for the right mtd map driver
157 for ( ; !info->mtd && *map_probes; map_probes++)
158 info->mtd = do_map_probe(*map_probes , &info->map);
162 info->mtd = do_map_probe("map_ram", &info->map);
164 if (info->mtd == NULL) {
170 info->mtd->dev.parent = &pdev->dev;
177 err = mtd_device_parse_register(info->mtd, pdata->probes, NULL,
181 dev_info(&pdev->dev, "registered mtd device\n");
185 err = mtd_device_register(info->mtd, NULL, 0);
203 MODULE_ALIAS("platform:mtd-ram");
209 .name = "mtd-ram",