Searched refs:ep7312_mtd (Results 1 – 1 of 1) sorted by relevance
33 static struct mtd_info *ep7312_mtd = NULL; variable120 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()[all …]