提交 ce8716e9 编写于 作者: J Jorge Ramirez-Ortiz 提交者: Boris Brezillon

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: NJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: NAcked-by: Harvey Hunt <harvey.hunt@imgtec.com>
上级 ff6ee101
...@@ -287,7 +287,6 @@ static struct jz4780_bch *jz4780_bch_get(struct device_node *np) ...@@ -287,7 +287,6 @@ static struct jz4780_bch *jz4780_bch_get(struct device_node *np)
bch = platform_get_drvdata(pdev); bch = platform_get_drvdata(pdev);
clk_prepare_enable(bch->clk); clk_prepare_enable(bch->clk);
bch->dev = &pdev->dev;
return bch; return bch;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册