mtd: nand: fsmc: remove duplicate nand_set_flash_node()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 21 Mar 2017 10:04:01 +0000 (11:04 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 23 Mar 2017 10:11:10 +0000 (11:11 +0100)
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>
drivers/mtd/nand/fsmc_nand.c

index abfaa1d..63055d7 100644 (file)
@@ -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: