Lines Matching defs:flash
2 * Mapping for Ocotea user flash
25 static struct mtd_info *flash;
28 .name = "Ocotea small flash",
34 .name = "Ocotea large flash",
87 printk("Failed to ioremap flash\n");
93 flash = do_map_probe("map_rom", &ocotea_small_map);
94 if (flash) {
95 flash->owner = THIS_MODULE;
96 add_mtd_partitions(flash, ocotea_small_partitions,
99 printk("map probe failed for flash\n");
109 printk("Failed to ioremap flash\n");
116 flash = do_map_probe("cfi_probe", &ocotea_large_map);
117 if (flash) {
118 flash->owner = THIS_MODULE;
119 add_mtd_partitions(flash, ocotea_large_partitions,
122 printk("map probe failed for flash\n");
133 if (flash) {
134 del_mtd_partitions(flash);
135 map_destroy(flash);