From: Boris BREZILLON Date: Thu, 10 Dec 2015 08:00:36 +0000 (+0100) Subject: staging: mt29f_spinand: remove useless mtd->priv = chip assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f12d86afc5594c89492fb7c78fce07a4e94b2384;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Brian Norris --- 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;