mtd: nand: remove useless mtd->priv = chip assignments
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>
This commit is contained in:

committed by
Brian Norris

parent
2d3b77bac3
commit
37f5a54646
@@ -147,7 +147,6 @@ static int sharpsl_nand_probe(struct platform_device *pdev)
|
||||
|
||||
/* Link the private data with the MTD structure */
|
||||
mtd = nand_to_mtd(this);
|
||||
mtd->priv = this;
|
||||
mtd->dev.parent = &pdev->dev;
|
||||
|
||||
platform_set_drvdata(pdev, sharpsl);
|
||||
|
Reference in New Issue
Block a user