mtd: nand: jz4780: fixup, device structure assigned at probe
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Thu, 24 Mar 2016 01:53:27 +0000 (21:53 -0400)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:04:50 +0000 (22:04 +0200)
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@linaro.org>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Acked-by: Harvey Hunt <harvey.hunt@imgtec.com>
drivers/mtd/nand/jz4780_bch.c

index 755499c6650e4e69614b4d342f9299fce9295b39..d74f4ba4a6f49b45859de1b04e0a3654ca5f2d7d 100644 (file)
@@ -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;
 }