提交 63757d46 编写于 作者: M Masahiro Yamada 提交者: Boris Brezillon

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: NMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 1394a726
...@@ -1441,6 +1441,7 @@ int denali_init(struct denali_nand_info *denali) ...@@ -1441,6 +1441,7 @@ int denali_init(struct denali_nand_info *denali)
/* now that our ISR is registered, we can enable interrupts */ /* now that our ISR is registered, we can enable interrupts */
denali_set_intr_modes(denali, true); denali_set_intr_modes(denali, true);
mtd->name = "denali-nand"; mtd->name = "denali-nand";
nand_set_flash_node(chip, denali->dev->of_node);
/* register the driver with the NAND core subsystem */ /* register the driver with the NAND core subsystem */
chip->select_chip = denali_select_chip; chip->select_chip = denali_select_chip;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册