summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2015-12-10 09:00:36 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-12-18 13:22:46 -0800
commitf12d86afc5594c89492fb7c78fce07a4e94b2384 (patch)
tree9e5f9e132d49f13be8940d16e35770b924ae6f04
parent038a5380e3698615eea341f10f42b1fd74e54e1c (diff)
downloadlinux-f12d86afc5594c89492fb7c78fce07a4e94b2384.tar.bz2
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: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--drivers/staging/mt29f_spinand/mt29f_spinand.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/staging/mt29f_spinand/mt29f_spinand.c
index 8171b741ff86..b7d429d45dab 100644
--- a/drivers/staging/mt29f_spinand/mt29f_spinand.c
+++ b/drivers/staging/mt29f_spinand/mt29f_spinand.c
@@ -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;