]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: nand: raw: rockchip_nfc: add flash_node to chip structure
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:28:53 +0000 (01:28 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:17 +0000 (17:28 +0800)
Add flash_node to the rockchip_nfc driver chip structure in order
to find the partitions in the add_mtd_partitions_of() function.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/raw/rockchip_nfc.c

index 90cd86a220f0006f300bc55fd99925b5d901395a..25e04974c0e1b747fa7aafcd4d362a4d4ac428e1 100644 (file)
@@ -934,6 +934,7 @@ static int rk_nfc_nand_chip_init(ofnode node, struct rk_nfc *nfc, int devnum)
 
        nand_set_controller_data(chip, nfc);
 
+       chip->flash_node = node;
        chip->chip_delay = NFC_RB_DELAY_US;
        chip->select_chip = rk_nfc_select_chip;
        chip->cmd_ctrl = rk_nfc_cmd;