mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mtd: jz4780_nand: remove useless mtd->priv = chip assignment
As of commit 2d3b77bac3 ("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 <[email protected]>
Cc: Harvey Hunt <[email protected]>
Cc: Alex Smith <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
This commit is contained in:
parent
f07dcb90e4
commit
f118902490
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue