Просмотр исходного кода

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>
Thomas Petazzoni 8 лет назад
Родитель
Сommit
c0d218c816
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      drivers/mtd/nand/fsmc_nand.c

+ 0 - 1
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: