diff options
author | Brian Norris <computersforpeace@gmail.com> | 2016-01-07 19:02:59 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-01-07 21:25:39 +0100 |
commit | f118902490aa1c3a361e485dd38a7b28cd130d71 (patch) | |
tree | 56c0a3a2cf65b90ed3d0ed0a5231f9867e98c310 /drivers/mtd | |
parent | staging: mt29f_spinand: make use of nand_set/get_controller_data() helpers (diff) | |
download | linux-f118902490aa1c3a361e485dd38a7b28cd130d71.tar.xz linux-f118902490aa1c3a361e485dd38a7b28cd130d71.zip |
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@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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/jz4780_nand.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/jz4780_nand.c b/drivers/mtd/nand/jz4780_nand.c index 17eb9f264187..6156c554e1c2 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) |