Skip to content

Commit

Permalink
mtd: jz4780_nand: remove useless mtd->priv = chip assignment
Browse files Browse the repository at this point in the history
As of commit 2d3b77b ("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>
  • Loading branch information
Brian Norris committed Jan 7, 2016
1 parent f07dcb9 commit f118902
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mtd/nand/jz4780_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f118902

Please sign in to comment.