diff options
author | Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com> | 2022-02-09 11:04:27 +0530 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-02-18 15:14:58 +0100 |
commit | a1fe2ace2c39dcdc7c053705459a73b7598b1e4f (patch) | |
tree | e81f1da08639ecbb0a5a84ea7421f86b3fad9dea /drivers/mtd/nand | |
parent | 8cba323437a49a45756d661f500b324fc2d486fe (diff) | |
download | linux-stable-a1fe2ace2c39dcdc7c053705459a73b7598b1e4f.tar.gz linux-stable-a1fe2ace2c39dcdc7c053705459a73b7598b1e4f.tar.bz2 linux-stable-a1fe2ace2c39dcdc7c053705459a73b7598b1e4f.zip |
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: 08d8c62164a3 ("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
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/raw/pl35x-nand-controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/pl35x-nand-controller.c b/drivers/mtd/nand/raw/pl35x-nand-controller.c index 8a91e069ee2e..3c6f6aff649f 100644 --- a/drivers/mtd/nand/raw/pl35x-nand-controller.c +++ b/drivers/mtd/nand/raw/pl35x-nand-controller.c @@ -1062,7 +1062,7 @@ static int pl35x_nand_chip_init(struct pl35x_nandc *nfc, chip->controller = &nfc->controller; mtd = nand_to_mtd(chip); mtd->dev.parent = nfc->dev; - nand_set_flash_node(chip, nfc->dev->of_node); + nand_set_flash_node(chip, np); if (!mtd->name) { mtd->name = devm_kasprintf(nfc->dev, GFP_KERNEL, "%s", PL35X_NANDC_DRIVER_NAME); |