mtd: nand: ndfc: show parent device in sysfs
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 6 10:59:19 PST 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0033cf072735a80072c877559180288012f4426d
Commit: 0033cf072735a80072c877559180288012f4426d
Parent: 9e86508f3e538d13c879c7c48a5eecb0509aade6
Author: Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:38:55 2015 +0200
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:39 2015 -0700
mtd: nand: ndfc: show parent device in sysfs
Fix a bug where parent device symlinks aren't shown in sysfs.
While at it, make use of the default owner set by mtdcore.
Signed-off-by: Frans Klaver <fransklaver at gmail.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/ndfc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index 67a1b3f..4f0d62f 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -169,7 +169,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
chip->priv = ndfc;
ndfc->mtd.priv = chip;
- ndfc->mtd.owner = THIS_MODULE;
+ ndfc->mtd.dev.parent = &ndfc->ofdev->dev;
flash_np = of_get_next_child(node, NULL);
if (!flash_np)
More information about the linux-mtd-cvs
mailing list