Lines Matching refs:mymtd
24 static struct mtd_info *mymtd; variable
145 mymtd = 0; in init_physmap()
147 for(; !mymtd && *type; type++) { in init_physmap()
148 mymtd = do_map_probe(*type, &physmap_map); in init_physmap()
150 if (mymtd) { in init_physmap()
151 mymtd->module = THIS_MODULE; in init_physmap()
153 add_mtd_device(mymtd); in init_physmap()
156 mtd_parts_nb = parse_cmdline_partitions(mymtd, &mtd_parts, in init_physmap()
162 add_mtd_partitions (mymtd, mtd_parts, mtd_parts_nb); in init_physmap()
169 add_mtd_partitions (mymtd, physmap_partitions, NUM_PARTITIONS); in init_physmap()
183 if (mymtd) { in cleanup_physmap()
184 del_mtd_device(mymtd); in cleanup_physmap()
185 map_destroy(mymtd); in cleanup_physmap()