Lines Matching refs:mymtd
95 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; variable
233 if (mymtd[j]) { in init_sc520cdp()
234 map_destroy(mymtd[j]); in init_sc520cdp()
243 mymtd[i] = do_map_probe("cfi_probe", &sc520cdp_map[i]); in init_sc520cdp()
244 if(!mymtd[i]) in init_sc520cdp()
245 mymtd[i] = do_map_probe("jedec_probe", &sc520cdp_map[i]); in init_sc520cdp()
246 if(!mymtd[i]) in init_sc520cdp()
247 mymtd[i] = do_map_probe("map_rom", &sc520cdp_map[i]); in init_sc520cdp()
249 if (mymtd[i]) { in init_sc520cdp()
250 mymtd[i]->owner = THIS_MODULE; in init_sc520cdp()
259 merged_mtd = mtd_concat_create(mymtd, 2, "SC520CDP Flash Banks #0 and #1"); in init_sc520cdp()
264 mtd_device_register(mymtd[2], NULL, 0); in init_sc520cdp()
276 if (mymtd[2]) in cleanup_sc520cdp()
277 mtd_device_unregister(mymtd[2]); in cleanup_sc520cdp()
280 if (mymtd[i]) in cleanup_sc520cdp()
281 map_destroy(mymtd[i]); in cleanup_sc520cdp()