mtd: jz4780_nand: remove useless mtd->priv = chip assignment
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 12 15:59:32 PST 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=f118902490aa1c3a361e485dd38a7b28cd130d71
Commit: f118902490aa1c3a361e485dd38a7b28cd130d71
Parent: f07dcb90e4a9ccab9663a50847f255c9b0e2ada1
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Thu Jan 7 10:02:59 2016 -0800
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Thu Jan 7 12:25:39 2016 -0800
mtd: jz4780_nand: remove useless mtd->priv = chip assignment
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 at gmail.com>
Cc: Harvey Hunt <harvey.hunt at imgtec.com>
Cc: Alex Smith <alex at alex-smith.me.uk>
Reviewed-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/jz4780_nand.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/nand/jz4780_nand.c b/drivers/mtd/nand/jz4780_nand.c
index 17eb9f2..6156c55 100644
--- a/drivers/mtd/nand/jz4780_nand.c
+++ b/drivers/mtd/nand/jz4780_nand.c
@@ -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)
More information about the linux-mtd-cvs
mailing list