diff options
author | Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> | 2016-03-23 21:53:27 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 22:04:50 +0200 |
commit | ce8716e97149d15379603890c4c7a2acfcf4a7ee (patch) | |
tree | 3f72a3a3ecc9de7ab1f0d62bb8add15ff4cbc9be /drivers/mtd | |
parent | ff6ee101584c17c4f30ca48d75e2910c49d0b0ff (diff) | |
download | op-kernel-dev-ce8716e97149d15379603890c4c7a2acfcf4a7ee.zip op-kernel-dev-ce8716e97149d15379603890c4c7a2acfcf4a7ee.tar.gz |
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/jz4780_bch.c | 1 |
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; } |