diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-10-31 04:33:23 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-11-11 22:45:17 +0100 |
commit | 6375219951a66047805ed977b674615d152001ee (patch) | |
tree | 1b77fb88df80da80175a882eae19c4f5eed77106 /drivers/mtd/nand/brcmnand | |
parent | mtd: {nand,spi-nor}: assign MTD of_node (diff) | |
download | linux-6375219951a66047805ed977b674615d152001ee.tar.xz linux-6375219951a66047805ed977b674615d152001ee.zip |
mtd: nand: convert to nand_set_flash_node()
Used semantic patch with 'make coccicheck MODE=patch COCCI=script.cocci':
---8<----
virtual patch
@@
struct nand_chip *c;
struct device_node *d;
@@
-(c)->flash_node = (d)
+nand_set_flash_node(c, d)
---8<----
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/brcmnand')
-rw-r--r-- | drivers/mtd/nand/brcmnand/brcmnand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c index 12c6190c6e33..7bd4102fde42 100644 --- a/drivers/mtd/nand/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/brcmnand/brcmnand.c @@ -1925,7 +1925,7 @@ static int brcmnand_init_cs(struct brcmnand_host *host) mtd = &host->mtd; chip = &host->chip; - chip->flash_node = dn; + nand_set_flash_node(chip, dn); chip->priv = host; mtd->priv = chip; mtd->name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "brcmnand.%d", |