staging: mt29f_spinand: remove useless mtd->priv = chip assignment
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 12 15:59:26 PST 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=f12d86afc5594c89492fb7c78fce07a4e94b2384
Commit: f12d86afc5594c89492fb7c78fce07a4e94b2384
Parent: 038a5380e3698615eea341f10f42b1fd74e54e1c
Author: Boris BREZILLON <boris.brezillon at free-electrons.com>
AuthorDate: Thu Dec 10 09:00:36 2015 +0100
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Dec 18 13:22:46 2015 -0800
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 at free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/staging/mt29f_spinand/mt29f_spinand.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/staging/mt29f_spinand/mt29f_spinand.c
index 8171b74..b7d429d 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;
More information about the linux-mtd-cvs
mailing list