Skip to content

Commit

Permalink
mtd: nand: jz4780: fixup, device structure assigned at probe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jorge Ramirez-Ortiz authored and Boris Brezillon committed Apr 19, 2016
1 parent ff6ee10 commit ce8716e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mtd/nand/jz4780_bch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ce8716e

Please sign in to comment.