summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-10-19 21:22:57 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-10-20 03:21:25 +0200
commitff84d2b76312681c1b751b1cc1ec6c476937f101 (patch)
tree500b8399b18df7ac67b35a08b2e538d97d4bdb96 /drivers/mtd/maps
parentmtd: mtd-user: remove stdint.h include (diff)
downloadlinux-ff84d2b76312681c1b751b1cc1ec6c476937f101.tar.xz
linux-ff84d2b76312681c1b751b1cc1ec6c476937f101.zip
mtd: maps: rbtx4939-flash: fix compile error
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>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/rbtx4939-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/rbtx4939-flash.c b/drivers/mtd/maps/rbtx4939-flash.c
index 18ee361455a2..3a06ecfc55ff 100644
--- a/drivers/mtd/maps/rbtx4939-flash.c
+++ b/drivers/mtd/maps/rbtx4939-flash.c
@@ -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);