Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f12d86af authored by Boris Brezillon's avatar Boris Brezillon Committed by Brian Norris
Browse files

staging: mt29f_spinand: remove useless mtd->priv = chip assignment



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: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 038a5380
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;