mtd: nand: gpmi-nand: show parent device in sysfs
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 6 10:59:17 PST 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4dc67b1d507133a3d6e93c39993efb6af176d59b
Commit: 4dc67b1d507133a3d6e93c39993efb6af176d59b
Parent: ddece7b6a6c0402430afe8819472e556e9ae8c75
Author: Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:38:49 2015 +0200
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:31 2015 -0700
mtd: nand: gpmi-nand: 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/gpmi-nand/gpmi-nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index 1b8f350..1dbcc81 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -1897,7 +1897,7 @@ static int gpmi_nand_init(struct gpmi_nand_data *this)
/* init the MTD data structures */
mtd->priv = chip;
mtd->name = "gpmi-nand";
- mtd->owner = THIS_MODULE;
+ mtd->dev.parent = this->dev;
/* init the nand_chip{}, we don't support a 16-bit NAND Flash bus. */
chip->priv = this;
More information about the linux-mtd-cvs
mailing list