From: Masahiro Yamada Date: Wed, 22 Mar 2017 20:07:18 +0000 (+0900) Subject: mtd: nand: denali: call nand_set_flash_node() to set DT node X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63757d463ea683b469c1976032054d46cecdef09;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 Signed-off-by: Boris Brezillon --- diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 4b907a5bdb25..f120f143539b 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;