mtd: nand: jz4780: fixup, device structure assigned at probe

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon May 23 21:59:05 PDT 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ce8716e97149d15379603890c4c7a2acfcf4a7ee
Commit:     ce8716e97149d15379603890c4c7a2acfcf4a7ee
Parent:     ff6ee101584c17c4f30ca48d75e2910c49d0b0ff
Author:     Jorge Ramirez-Ortiz <jorge.ramirez-ortiz at linaro.org>
AuthorDate: Wed Mar 23 21:53:27 2016 -0400
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Tue Apr 19 22:04:50 2016 +0200

    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 <jorge.ramirez-ortiz at linaro.org>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
    Acked-by: Acked-by: Harvey Hunt <harvey.hunt at imgtec.com>
---
 drivers/mtd/nand/jz4780_bch.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/jz4780_bch.c b/drivers/mtd/nand/jz4780_bch.c
index 755499c..d74f4ba 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;
 }
 



More information about the linux-mtd-cvs mailing list