Lines Matching refs: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);
145 dev_dbg(&pdev->dev, "initialised map, probing for mtd\n");
147 /* probe for the right mtd map driver
153 for ( ; !info->mtd && *map_probes; map_probes++)
154 info->mtd = do_map_probe(*map_probes , &info->map);
158 info->mtd = do_map_probe("map_ram", &info->map);
160 if (info->mtd == NULL) {
166 info->mtd->dev.parent = &pdev->dev;
173 err = mtd_device_parse_register(info->mtd, pdata->probes, NULL,
177 dev_err(&pdev->dev, "failed to register mtd device\n");
181 dev_info(&pdev->dev, "registered mtd device\n");
185 err = mtd_device_register(info->mtd, NULL, 0);
204 MODULE_ALIAS("platform:mtd-ram");
210 .name = "mtd-ram",