mtd: nand: tmio_nand: show parent device in sysfs
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 6 10:59:18 PST 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=7b679053cd3348fb8efdd07ce39c4e2e2ad46620
Commit: 7b679053cd3348fb8efdd07ce39c4e2e2ad46620
Parent: 611425d33763fba57a02c40ee286b0c7152903ea
Author: Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:39:08 2015 +0200
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:37 2015 -0700
mtd: nand: tmio_nand: show parent device in sysfs
Fix a bug where parent device symlinks aren't shown in sysfs.
Signed-off-by: Frans Klaver <fransklaver at gmail.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/tmio_nand.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c
index fb8fd35..befddf0 100644
--- a/drivers/mtd/nand/tmio_nand.c
+++ b/drivers/mtd/nand/tmio_nand.c
@@ -382,6 +382,7 @@ static int tmio_probe(struct platform_device *dev)
nand_chip = &tmio->chip;
mtd->priv = nand_chip;
mtd->name = "tmio-nand";
+ mtd->dev.parent = &dev->dev;
tmio->ccr = devm_ioremap(&dev->dev, ccr->start, resource_size(ccr));
if (!tmio->ccr)
More information about the linux-mtd-cvs
mailing list