staging: mt29f_spinand: remove useless mtd->priv = chip assignment
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Thu, 10 Dec 2015 08:00:36 +0000 (09:00 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 18 Dec 2015 21:22:46 +0000 (13:22 -0800)
mtd_to_nand() now uses the container_of() approach to transform an
mtd_info pointer into a nand_chip one. Drop useless mtd->priv
assignments from NAND controller drivers.

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

index 8171b741ff86ee364a85117aa1dd3daa2ffbd95d..b7d429d45dab75aefa63e03eedd7ab099cf99bcf 100644 (file)
@@ -907,7 +907,6 @@ static int spinand_probe(struct spi_device *spi_nand)
 
        dev_set_drvdata(&spi_nand->dev, mtd);
 
-       mtd->priv = chip;
        mtd->dev.parent = &spi_nand->dev;
        mtd->oobsize = 64;