mtd: nand: denali: call nand_set_flash_node() to set DT node

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 10 19:59:10 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=63757d463ea683b469c1976032054d46cecdef09
Commit:     63757d463ea683b469c1976032054d46cecdef09
Parent:     1394a7265f88e1fbd001048113f28fb090e5eff5
Author:     Masahiro Yamada <yamada.masahiro at socionext.com>
AuthorDate: Thu Mar 23 05:07:18 2017 +0900
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Mon Mar 27 16:09:38 2017 +0200

    mtd: nand: denali: call nand_set_flash_node() to set DT node
    
    This will allow nand_dt_init() to parse DT properties in the NAND
    controller device node.
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/denali.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 4b907a5b..f120f14 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1441,6 +1441,7 @@ int denali_init(struct denali_nand_info *denali)
 	/* now that our ISR is registered, we can enable interrupts */
 	denali_set_intr_modes(denali, true);
 	mtd->name = "denali-nand";
+	nand_set_flash_node(chip, denali->dev->of_node);
 
 	/* register the driver with the NAND core subsystem */
 	chip->select_chip = denali_select_chip;



More information about the linux-mtd-cvs mailing list