Lines Matching refs:flash_mtd
31 static struct mtd_info *flash_mtd; variable
64 flash_mtd = do_map_probe("cfi_probe", &cdb89712_flash_map); in init_cdb89712_flash()
65 if (!flash_mtd) { in init_cdb89712_flash()
66 flash_mtd = do_map_probe("map_rom", &cdb89712_flash_map); in init_cdb89712_flash()
67 if (flash_mtd) in init_cdb89712_flash()
68 flash_mtd->erasesize = 0x10000; in init_cdb89712_flash()
70 if (!flash_mtd) { in init_cdb89712_flash()
76 flash_mtd->owner = THIS_MODULE; in init_cdb89712_flash()
78 if (mtd_device_register(flash_mtd, NULL, 0)) { in init_cdb89712_flash()
87 map_destroy(flash_mtd); in init_cdb89712_flash()
88 flash_mtd = 0; in init_cdb89712_flash()
258 if (flash_mtd) { in cleanup_cdb89712_maps()
259 mtd_device_unregister(flash_mtd); in cleanup_cdb89712_maps()
260 map_destroy(flash_mtd); in cleanup_cdb89712_maps()