diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-11-02 00:03:38 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-11-11 15:54:15 -0800 |
commit | 44ec23c9ecd95d13ec9dd8d0b0dc9e82bd3258ff (patch) | |
tree | bd3d665187d4f9ca5838d4d67fe1ec2ac2d01b75 /drivers/mtd/nand/brcmnand/brcmnand.c | |
parent | 8361a9b8cb6a9c71b7cf884a87b2532d8367c185 (diff) | |
download | linux-44ec23c9ecd95d13ec9dd8d0b0dc9e82bd3258ff.tar.bz2 |
mtd: nand: convert to nand_get_flash_node()
Used semantic patch with 'make coccicheck MODE=patch COCCI=script.cocci':
---8<----
virtual patch
@@
struct nand_chip c;
struct nand_chip *cp;
@@
(
-(cp)->flash_node
+nand_get_flash_node(cp)
|
-(c).flash_node
+nand_get_flash_node(&c)
)
---8<----
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/brcmnand/brcmnand.c')
-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 a37659de025c..2a437c7ed175 100644 --- a/drivers/mtd/nand/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/brcmnand/brcmnand.c @@ -1816,7 +1816,7 @@ static int brcmnand_setup_dev(struct brcmnand_host *host) memset(cfg, 0, sizeof(*cfg)); - ret = of_property_read_u32(chip->flash_node, + ret = of_property_read_u32(nand_get_flash_node(chip), "brcm,nand-oob-sector-size", &oob_sector); if (ret) { |