Lines Matching refs:h1910_nand_mtd
35 static struct mtd_info *h1910_nand_mtd = NULL; variable
102 h1910_nand_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); in h1910_init()
103 if (!h1910_nand_mtd) { in h1910_init()
110 this = (struct nand_chip *)(&h1910_nand_mtd[1]); in h1910_init()
113 memset(h1910_nand_mtd, 0, sizeof(struct mtd_info)); in h1910_init()
117 h1910_nand_mtd->priv = this; in h1910_init()
118 h1910_nand_mtd->owner = THIS_MODULE; in h1910_init()
136 if (nand_scan(h1910_nand_mtd, 1)) { in h1910_init()
138 kfree(h1910_nand_mtd); in h1910_init()
143 mtd_parts_nb = parse_cmdline_partitions(h1910_nand_mtd, &mtd_parts, "h1910-nand"); in h1910_init()
157 add_mtd_partitions(h1910_nand_mtd, mtd_parts, mtd_parts_nb); in h1910_init()
170 struct nand_chip *this = (struct nand_chip *)&h1910_nand_mtd[1]; in h1910_cleanup()
173 nand_release(h1910_nand_mtd); in h1910_cleanup()
179 kfree(h1910_nand_mtd); in h1910_cleanup()