summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/brcmnand
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-09-03 18:35:37 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-09-11 15:48:43 -0700
commit61528d888adf9470db73aaadf1ff9ca35942262a (patch)
treed83f422127c6865eb30539a0ac0624a73291362f /drivers/mtd/nand/brcmnand
parent11bff0b70cc003b995cf4c2acec4adab90957b02 (diff)
downloadtalos-obmc-linux-61528d888adf9470db73aaadf1ff9ca35942262a.tar.gz
talos-obmc-linux-61528d888adf9470db73aaadf1ff9ca35942262a.zip
mtd: nand: Rename nand_chip .dn to .flash_node
Use a more descriptive name for the device_node element in struct nand_chip . This name matches the element name used for device_node property of a flash in the spi-nor framework. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/brcmnand')
-rw-r--r--drivers/mtd/nand/brcmnand/brcmnand.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c
index fddb795eeb71..048e4e030fc8 100644
--- a/drivers/mtd/nand/brcmnand/brcmnand.c
+++ b/drivers/mtd/nand/brcmnand/brcmnand.c
@@ -1792,7 +1792,8 @@ static int brcmnand_setup_dev(struct brcmnand_host *host)
memset(cfg, 0, sizeof(*cfg));
- ret = of_property_read_u32(chip->dn, "brcm,nand-oob-sector-size",
+ ret = of_property_read_u32(chip->flash_node,
+ "brcm,nand-oob-sector-size",
&oob_sector);
if (ret) {
/* Use detected size */
@@ -1899,7 +1900,7 @@ static int brcmnand_init_cs(struct brcmnand_host *host)
mtd = &host->mtd;
chip = &host->chip;
- chip->dn = dn;
+ chip->flash_node = dn;
chip->priv = host;
mtd->priv = chip;
mtd->name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "brcmnand.%d",
OpenPOWER on IntegriCloud