Skip to content

Commit a1fe2ac

Browse files
Amit Kumar Mahapatramiquelraynal
authored andcommitted
mtd: rawnand: pl353: Set the nand chip node as the flash node
In devicetree the flash information is embedded within nand chip node, so during nand chip initialization the nand chip node should be passed to nand_set_flash_node() api, instead of nand controller node. Fixes: 08d8c62 ("mtd: rawnand: pl353: Add support for the ARM PL353 SMC NAND controller") Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20220209053427.27676-1-amit.kumar-mahapatra@xilinx.com
1 parent 8cba323 commit a1fe2ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/nand/raw/pl35x-nand-controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ static int pl35x_nand_chip_init(struct pl35x_nandc *nfc,
10621062
chip->controller = &nfc->controller;
10631063
mtd = nand_to_mtd(chip);
10641064
mtd->dev.parent = nfc->dev;
1065-
nand_set_flash_node(chip, nfc->dev->of_node);
1065+
nand_set_flash_node(chip, np);
10661066
if (!mtd->name) {
10671067
mtd->name = devm_kasprintf(nfc->dev, GFP_KERNEL,
10681068
"%s", PL35X_NANDC_DRIVER_NAME);

0 commit comments

Comments
 (0)