aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/fsmc_nand.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-21 11:04:01 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-03-23 11:11:10 +0100
commitc0d218c81621d847472e01f227eab3e4f0902ce2 (patch)
tree6d788f687b7d78c3578cb12d2e6c8c00ff6a9d10 /drivers/mtd/nand/fsmc_nand.c
parentmtd: nand: fsmc: kill {nr_, }partitions structure fields (diff)
downloadlinux-dev-c0d218c81621d847472e01f227eab3e4f0902ce2.tar.xz
linux-dev-c0d218c81621d847472e01f227eab3e4f0902ce2.zip
mtd: nand: fsmc: remove duplicate nand_set_flash_node()
It is already done a few lines before. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/fsmc_nand.c')
-rw-r--r--drivers/mtd/nand/fsmc_nand.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index abfaa1d6e22e..63055d7dcfef 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -947,7 +947,6 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
nand->ecc.size = 512;
nand->options = pdata->options;
nand->badblockbits = 7;
- nand_set_flash_node(nand, np);
switch (host->mode) {
case USE_DMA_ACCESS: