mtd: maps: rbtx4939-flash: fix compile error
authorBrian Norris <computersforpeace@gmail.com>
Mon, 19 Oct 2015 19:22:57 +0000 (12:22 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 20 Oct 2015 01:21:25 +0000 (18:21 -0700)
We got the syntax wrong here. Compile tested this time!

Error:

   drivers/mtd/maps/rbtx4939-flash.c: In function 'rbtx4939_flash_probe':
>> drivers/mtd/maps/rbtx4939-flash.c:99:11: error: request for member 'dev' in something not a structure or union
     info->mtd.dev.parent = &dev->dev;
              ^

Fixes: 9aa7e50276c1 ("mtd: maps: rbtx4939-flash: show parent device in sysfs")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Frans Klaver <fransklaver@gmail.com>
drivers/mtd/maps/rbtx4939-flash.c

index 18ee361455a20189f3b497a0cd6c0ac0c3dc47a0..3a06ecfc55ff6baf9782cfc78118b2feff564744 100644 (file)
@@ -96,7 +96,7 @@ static int rbtx4939_flash_probe(struct platform_device *dev)
                err = -ENXIO;
                goto err_out;
        }
-       info->mtd.dev.parent = &dev->dev;
+       info->mtd->dev.parent = &dev->dev;
        err = mtd_device_parse_register(info->mtd, NULL, NULL, pdata->parts,
                                        pdata->nr_parts);