mirror of https://gitee.com/openkylin/linux.git
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@socionext.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
parent
1394a7265f
commit
63757d463e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue