mymtd->owner = THIS_MODULE;#ifdefCONFIG_MTD_PARTITIONSnr_parts = parse_mtd_partitions(mymtd, part_probe_types, &parts,0);if(nr_parts >0) add_mtd_partitions(mymtd, parts, nr_parts);elseadd_mtd_device(mymtd);#elseadd_mtd_device(mymtd);#endif}else{ pr_err("Failed to register MTD ...