Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1189024 authored by Brian Norris's avatar Brian Norris
Browse files

mtd: jz4780_nand: remove useless mtd->priv = chip assignment



As of commit 2d3b77ba ("mtd: nand: update mtd_to_nand()"), this
assignment isn't necessary, since struct mtd_info is embedded in struct
nand_chip.

Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Cc: Harvey Hunt <harvey.hunt@imgtec.com>
Cc: Alex Smith <alex@alex-smith.me.uk>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent f07dcb90
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)