Lines Matching refs:mymtd
78 static struct mtd_info *mymtd; variable
94 mymtd = do_map_probe("cfi_probe", &netsc520_map); in init_netsc520()
95 if(!mymtd) in init_netsc520()
96 mymtd = do_map_probe("map_ram", &netsc520_map); in init_netsc520()
97 if(!mymtd) in init_netsc520()
98 mymtd = do_map_probe("map_rom", &netsc520_map); in init_netsc520()
100 if (!mymtd) { in init_netsc520()
105 mymtd->owner = THIS_MODULE; in init_netsc520()
106 mtd_device_register(mymtd, partition_info, NUM_PARTITIONS); in init_netsc520()
112 if (mymtd) { in cleanup_netsc520()
113 mtd_device_unregister(mymtd); in cleanup_netsc520()
114 map_destroy(mymtd); in cleanup_netsc520()