Lines Matching refs:vmax_mtd
133 static struct mtd_info *vmax_mtd[2] = {NULL, NULL};
140 if (vmax_mtd[i]) {
141 del_mtd_device(vmax_mtd[i]);
142 map_destroy(vmax_mtd[i]);
170 vmax_mtd[i] = do_map_probe("cfi_probe", &vmax_map[i]);
171 if (!vmax_mtd[i])
172 vmax_mtd[i] = do_map_probe("jedec", &vmax_map[i]);
173 if (!vmax_mtd[i])
174 vmax_mtd[i] = do_map_probe("map_ram", &vmax_map[i]);
175 if (!vmax_mtd[i])
176 vmax_mtd[i] = do_map_probe("map_rom", &vmax_map[i]);
177 if (vmax_mtd[i]) {
178 vmax_mtd[i]->owner = THIS_MODULE;
179 add_mtd_device(vmax_mtd[i]);
183 if (!vmax_mtd[0] && !vmax_mtd[1]) {