mtd: ndfc: fix typo in structure dereference

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Dec 2 11:59:01 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=629be5f275ddf0791614f8cbdafc11bde4247850
Commit:     629be5f275ddf0791614f8cbdafc11bde4247850
Parent:     5611cc4572e889b62a7b4c72a413536bf6a9c416
Author:     Tony Breeds <tony at bakeyournoodle.com>
AuthorDate: Tue Nov 22 15:39:11 2011 +1100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Dec 2 16:27:03 2011 +0000

    mtd: ndfc: fix typo in structure dereference
    
    In commit 9d7948c50055e74b693ce9e99a709b2e5bbc1942 (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: Tony Breeds <tony at bakeyournoodle.com>
    Acked-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/ndfc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index ee17139..f8aacf4 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -188,7 +188,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
 	if (!flash_np)
 		return -ENODEV;
 
-	ppdata->of_node = flash_np;
+	ppdata.of_node = flash_np;
 	ndfc->mtd.name = kasprintf(GFP_KERNEL, "%s.%s",
 			dev_name(&ndfc->ofdev->dev), flash_np->name);
 	if (!ndfc->mtd.name) {



More information about the linux-mtd-cvs mailing list