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
@@ -638,7 +638,6 @@ static int r852_register_nand_device(struct r852_device *dev)
|
||||
|
||||
WARN_ON(dev->card_registred);
|
||||
|
||||
mtd->priv = dev->chip;
|
||||
mtd->dev.parent = &dev->pci_dev->dev;
|
||||
|
||||
if (dev->readonly)
|
||||
|
Reference in New Issue
Block a user