summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/ndfc.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-28 03:52:34 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-09-04 23:37:38 +0200
commita9fdba0b0e5f63646fdf65e0e01dd757b11cec83 (patch)
tree84c4de15934e274087fdf23a60ffcdbce1166474 /drivers/mtd/nand/raw/ndfc.c
parentmtd: rawnand: qcom: don't include dma-direct.h (diff)
downloadlinux-a9fdba0b0e5f63646fdf65e0e01dd757b11cec83.tar.xz
linux-a9fdba0b0e5f63646fdf65e0e01dd757b11cec83.zip
mtd: rawnand: Convert to using %pOFn instead of device_node.name
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Boris Brezillon <boris.brezillon@bootlin.com> Cc: Miquel Raynal <miquel.raynal@bootlin.com> Cc: Richard Weinberger <richard@nod.at> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Brian Norris <computersforpeace@gmail.com> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: linux-mtd@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/ndfc.c')
-rw-r--r--drivers/mtd/nand/raw/ndfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/ndfc.c b/drivers/mtd/nand/raw/ndfc.c
index 540fa1a0ea24..b193f373f235 100644
--- a/drivers/mtd/nand/raw/ndfc.c
+++ b/drivers/mtd/nand/raw/ndfc.c
@@ -174,8 +174,8 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
return -ENODEV;
nand_set_flash_node(chip, flash_np);
- mtd->name = kasprintf(GFP_KERNEL, "%s.%s", dev_name(&ndfc->ofdev->dev),
- flash_np->name);
+ mtd->name = kasprintf(GFP_KERNEL, "%s.%pOFn", dev_name(&ndfc->ofdev->dev),
+ flash_np);
if (!mtd->name) {
ret = -ENOMEM;
goto err;