mtd: nand: denali: call nand_set_flash_node() to set DT node
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Mar 2017 20:07:18 +0000 (05:07 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 27 Mar 2017 14:09:38 +0000 (16:09 +0200)
This will allow nand_dt_init() to parse DT properties in the NAND
controller device node.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c

index 4b907a5bdb25bc24318b2d29f6d3a37027bfd407..f120f143539bef545cfb300aaa159bbfd8674214 100644 (file)
@@ -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;