Lines Matching refs:ppchameleon_mtd
59 static struct mtd_info *ppchameleon_mtd = NULL; variable
213 ppchameleon_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); in ppchameleonevb_init()
214 if (!ppchameleon_mtd) { in ppchameleonevb_init()
223 kfree(ppchameleon_mtd); in ppchameleonevb_init()
228 this = (struct nand_chip *)(&ppchameleon_mtd[1]); in ppchameleonevb_init()
231 memset(ppchameleon_mtd, 0, sizeof(struct mtd_info)); in ppchameleonevb_init()
235 ppchameleon_mtd->priv = this; in ppchameleonevb_init()
236 ppchameleon_mtd->owner = THIS_MODULE; in ppchameleonevb_init()
275 if (nand_scan(ppchameleon_mtd, 1)) { in ppchameleonevb_init()
278 kfree(ppchameleon_mtd); in ppchameleonevb_init()
283 if (ppchameleon_mtd->size == NAND_SMALL_SIZE) in ppchameleonevb_init()
288 ppchameleon_mtd->name = "ppchameleon-nand"; in ppchameleonevb_init()
289 mtd_parts_nb = parse_mtd_partitions(ppchameleon_mtd, part_probes, &mtd_parts, 0); in ppchameleonevb_init()
296 if (ppchameleon_mtd->size == NAND_SMALL_SIZE) in ppchameleonevb_init()
306 add_mtd_partitions(ppchameleon_mtd, mtd_parts, mtd_parts_nb); in ppchameleonevb_init()
420 nand_release(ppchameleon_mtd); in ppchameleonevb_cleanup()
424 this = (struct nand_chip *) &ppchameleon_mtd[1]; in ppchameleonevb_cleanup()
430 kfree (ppchameleon_mtd); in ppchameleonevb_cleanup()