From: Jorge Ramirez-Ortiz Date: Thu, 24 Mar 2016 01:53:27 +0000 (-0400) Subject: mtd: nand: jz4780: fixup, device structure assigned at probe X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ce8716e97149d15379603890c4c7a2acfcf4a7ee;p=openwrt%2Fstaging%2Fblogic.git mtd: nand: jz4780: fixup, device structure assigned at probe bch->dev is already assigned to &pdev->dev in the probe function. Remove the duplicate assignment done in jz4780_bch_get(). Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Boris Brezillon Acked-by: Acked-by: Harvey Hunt --- diff --git a/drivers/mtd/nand/jz4780_bch.c b/drivers/mtd/nand/jz4780_bch.c index 755499c6650e..d74f4ba4a6f4 100644 --- a/drivers/mtd/nand/jz4780_bch.c +++ b/drivers/mtd/nand/jz4780_bch.c @@ -287,7 +287,6 @@ static struct jz4780_bch *jz4780_bch_get(struct device_node *np) bch = platform_get_drvdata(pdev); clk_prepare_enable(bch->clk); - bch->dev = &pdev->dev; return bch; }