Lines Matching refs:mtd
25 struct mtd_info *mtd; member
37 if (info->mtd) { in rbtx4939_flash_remove()
38 mtd_device_unregister(info->mtd); in rbtx4939_flash_remove()
39 map_destroy(info->mtd); in rbtx4939_flash_remove()
92 for (; !info->mtd && *probe_type; probe_type++) in rbtx4939_flash_probe()
93 info->mtd = do_map_probe(*probe_type, &info->map); in rbtx4939_flash_probe()
94 if (!info->mtd) { in rbtx4939_flash_probe()
99 info->mtd->dev.parent = &dev->dev; in rbtx4939_flash_probe()
100 err = mtd_device_parse_register(info->mtd, NULL, NULL, pdata->parts, in rbtx4939_flash_probe()
117 if (mtd_suspend(info->mtd) == 0) in rbtx4939_flash_shutdown()
118 mtd_resume(info->mtd); in rbtx4939_flash_shutdown()