Searched refs:spia_mtd (Results 1 – 1 of 1) sorted by relevance
33 static struct mtd_info *spia_mtd = NULL; variable110 spia_mtd = kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip), in spia_init()112 if (!spia_mtd) { in spia_init()118 this = (struct nand_chip *) (&spia_mtd[1]); in spia_init()121 memset((char *) spia_mtd, 0, sizeof(struct mtd_info)); in spia_init()125 spia_mtd->priv = this; in spia_init()142 if (nand_scan (spia_mtd)) { in spia_init()143 kfree (spia_mtd); in spia_init()148 this->data_buf = kmalloc (sizeof(u_char) * (spia_mtd->oobblock + spia_mtd->oobsize), GFP_KERNEL); in spia_init()151 kfree (spia_mtd); in spia_init()[all …]