Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce8716e9 authored by Jorge Ramirez-Ortiz's avatar Jorge Ramirez-Ortiz Committed by Boris Brezillon
Browse files

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: default avatarJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: default avatarAcked-by: Harvey Hunt <harvey.hunt@imgtec.com>
parent ff6ee101
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}