mtd: jz4780_nand: remove useless mtd->priv = chip assignment
authorBrian Norris <computersforpeace@gmail.com>
Thu, 7 Jan 2016 18:02:59 +0000 (10:02 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Jan 2016 20:25:39 +0000 (12:25 -0800)
As of commit 2d3b77bac34b ("mtd: nand: update mtd_to_nand()"), this
assignment isn't necessary, since struct mtd_info is embedded in struct
nand_chip.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Harvey Hunt <harvey.hunt@imgtec.com>
Cc: Alex Smith <alex@alex-smith.me.uk>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/jz4780_nand.c

index 17eb9f264187396841fe77a6b5345bab60604212..6156c554e1c279fc7cc076bc73ea7d33359be998 100644 (file)
@@ -270,7 +270,6 @@ static int jz4780_nand_init_chip(struct platform_device *pdev,
 
        chip = &nand->chip;
        mtd = nand_to_mtd(chip);
-       mtd->priv = chip;
        mtd->name = devm_kasprintf(dev, GFP_KERNEL, "%s.%d", dev_name(dev),
                                   cs->bank);
        if (!mtd->name)