mtd: nand: sh_flctl: 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=c4f7dc72e6a56d50e00b40f76be0119ce9abdeec
Commit:     c4f7dc72e6a56d50e00b40f76be0119ce9abdeec
Parent:     2eaac143aa6d433f92819acca1e62a337a73e0a3
Author:     Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:39:04 2015 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:35 2015 -0700

    mtd: nand: sh_flctl: 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/sh_flctl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index c3ce81c..2e4f762 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -1123,6 +1123,7 @@ static int flctl_probe(struct platform_device *pdev)
 	flctl_mtd = &flctl->mtd;
 	nand = &flctl->chip;
 	flctl_mtd->priv = nand;
+	flctl_mtd->dev.parent = &pdev->dev;
 	flctl->pdev = pdev;
 	flctl->hwecc = pdata->has_hwecc;
 	flctl->holden = pdata->use_holden;



More information about the linux-mtd-cvs mailing list