Commit 629be5f2 authored by Tony Breeds's avatar Tony Breeds Committed by David Woodhouse

mtd: ndfc: fix typo in structure dereference

In commit 9d7948c5 (mtd: ndfc: use
ofpart through generic parsing) we dereference a non pointer type
causing the following compiler error:
drivers/mtd/nand/ndfc.c: In function 'ndfc_chip_init':
drivers/mtd/nand/ndfc.c:191: error: invalid type argument of '->' (have 'struct mtd_part_parser_data')

Fix that.
Signed-off-by: default avatarTony Breeds <tony@bakeyournoodle.com>
Acked-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 5611cc45
...@@ -188,7 +188,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc, ...@@ -188,7 +188,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
if (!flash_np) if (!flash_np)
return -ENODEV; return -ENODEV;
ppdata->of_node = flash_np; ppdata.of_node = flash_np;
ndfc->mtd.name = kasprintf(GFP_KERNEL, "%s.%s", ndfc->mtd.name = kasprintf(GFP_KERNEL, "%s.%s",
dev_name(&ndfc->ofdev->dev), flash_np->name); dev_name(&ndfc->ofdev->dev), flash_np->name);
if (!ndfc->mtd.name) { if (!ndfc->mtd.name) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment