[PATCH 09/13] mtd: nand: fsmc: remove duplicate nand_set_flash_node()

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Mar 21 03:04:01 PDT 2017


It is already done a few lines before.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 drivers/mtd/nand/fsmc_nand.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index 8342c39..990c83a 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -1024,7 +1024,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);
 	nand->setup_data_interface = fsmc_setup_data_interface;
 
 	switch (host->mode) {
-- 
2.7.4




More information about the linux-mtd mailing list