staging: mt29f_spinand: use the mtd instance embedded in struct nand_chip
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Thu, 10 Dec 2015 08:00:31 +0000 (09:00 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 18 Dec 2015 20:44:14 +0000 (12:44 -0800)
commitba4ed8605cb09b2cb72bf14499cf4605a0f9eb23
tree802af440994e28a64647179e21771bb2b35d8e54
parent2d3743944a6b425f3a3795a967499c13e0d8856c
staging: mt29f_spinand: use the mtd instance embedded in struct nand_chip

struct nand_chip now embeds an mtd device, use it instead of allocating
a new one.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/staging/mt29f_spinand/mt29f_spinand.c