Lines Matching refs:ep7312_mtd
33 static struct mtd_info *ep7312_mtd = NULL; variable
120 ep7312_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); in ep7312_init()
121 if (!ep7312_mtd) { in ep7312_init()
130 kfree(ep7312_mtd); in ep7312_init()
135 this = (struct nand_chip *)(&ep7312_mtd[1]); in ep7312_init()
138 memset(ep7312_mtd, 0, sizeof(struct mtd_info)); in ep7312_init()
142 ep7312_mtd->priv = this; in ep7312_init()
143 ep7312_mtd->owner = THIS_MODULE; in ep7312_init()
160 if (nand_scan(ep7312_mtd, 1)) { in ep7312_init()
162 kfree(ep7312_mtd); in ep7312_init()
166 ep7312_mtd->name = "edb7312-nand"; in ep7312_init()
167 mtd_parts_nb = parse_mtd_partitions(ep7312_mtd, part_probes, &mtd_parts, 0); in ep7312_init()
181 add_mtd_partitions(ep7312_mtd, mtd_parts, mtd_parts_nb); in ep7312_init()
194 struct nand_chip *this = (struct nand_chip *)&ep7312_mtd[1]; in ep7312_cleanup()
203 kfree(ep7312_mtd); in ep7312_cleanup()