mtd: maps: rbtx4939-flash: fix compile error
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 6 10:59:25 PST 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ff84d2b76312681c1b751b1cc1ec6c476937f101
Commit: ff84d2b76312681c1b751b1cc1ec6c476937f101
Parent: 137d36af4a53858b8db7ca83c8480247118b8bdf
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Mon Oct 19 12:22:57 2015 -0700
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Oct 19 18:21:25 2015 -0700
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 at intel.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Cc: Frans Klaver <fransklaver at gmail.com>
---
drivers/mtd/maps/rbtx4939-flash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/maps/rbtx4939-flash.c b/drivers/mtd/maps/rbtx4939-flash.c
index 18ee3614..3a06ecf 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);
More information about the linux-mtd-cvs
mailing list