summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>2016-03-24 01:53:27 (GMT)
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-04-19 20:04:50 (GMT)
commitce8716e97149d15379603890c4c7a2acfcf4a7ee (patch)
tree3f72a3a3ecc9de7ab1f0d62bb8add15ff4cbc9be
parentff6ee101584c17c4f30ca48d75e2910c49d0b0ff (diff)
downloadlinux-ce8716e97149d15379603890c4c7a2acfcf4a7ee.tar.xz
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@linaro.org> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Acked-by: Harvey Hunt <harvey.hunt@imgtec.com>
-rw-r--r--drivers/mtd/nand/jz4780_bch.c1
1 files changed, 0 insertions, 1 deletions
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;
}