mtd: jz4780_nand: remove useless mtd->priv = chip assignment
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Cc Harvey Hunt <[email protected]>
Cc Boris Brezillon <[email protected]>
Cc Alex Smith <[email protected]>
--- drivers/mtd/nand/jz4780_nand.c | 1 - 1 file changed, 1 deletion(-)
drivers/mtd/nand/jz4780_nand.c +0 -1
@@ -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)
Signature · 1 line
2.6.0.rc2.230.g3dd15c0
Quoted 8 lines · On Thu, 7 Jan 2016 10:02:59 -0800 Brian Norris <[email protected]>…
As of commit
2d3b77bac34b("mtd: nand: updatemtd_to_nand()"), this assignment isn't necessary, since structmtd_infois embedded in structnand_chip.Signed-off-by Brian Norris <[email protected]>Cc Harvey Hunt <[email protected]>Cc Boris Brezillon <[email protected]>Cc Alex Smith <[email protected]>
Reviewed-by Boris Brezillon <[email protected]>
Quoted 16 lines
--- drivers/mtd/nand/jz4780_nand.c | 1 - 1 file changed, 1 deletion(-)drivers/mtd/nand/jz4780_nand.c +0
-1@@ -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)
Signature · 3 lines
Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Brian Norris
AppliedQuoted 7 lines · Boris Brezillon
Quoted 4 lines · On Thu, 7 Jan 2016 10:02:59 -0800 Brian Norris <[email protected]>…
As of commit
2d3b77bac34b("mtd: nand: updatemtd_to_nand()"), this assignment isn't necessary, since structmtd_infois embedded in structnand_chip.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Brian Norris <[email protected]>Cc Harvey Hunt <[email protected]>Cc Boris Brezillon <[email protected]>Cc Alex Smith <[email protected]>Reviewed-by Boris Brezillon <[email protected]>
Thanks! Applied to l2-mtd.git