Searched refs:new_mtd (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/mtd/nand/
H A Dcs553x_nand.c190 struct mtd_info *new_mtd; cs553x_init_one() local
200 new_mtd = kzalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); cs553x_init_one()
201 if (!new_mtd) { cs553x_init_one()
207 this = (struct nand_chip *)(&new_mtd[1]); cs553x_init_one()
210 new_mtd->priv = this; cs553x_init_one()
211 new_mtd->owner = THIS_MODULE; cs553x_init_one()
240 new_mtd->name = kasprintf(GFP_KERNEL, "cs553x_nand_cs%d", cs); cs553x_init_one()
241 if (!new_mtd->name) { cs553x_init_one()
247 if (nand_scan(new_mtd, 1)) { cs553x_init_one()
252 cs553x_mtd[cs] = new_mtd; cs553x_init_one()
256 kfree(new_mtd->name); cs553x_init_one()
260 kfree(new_mtd); cs553x_init_one()

Completed in 34 milliseconds