mtd: nand: mpc5121_nfc: 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=7829ab93f1c2334802d259a7e2a4e22a1fd03bd9
Commit:     7829ab93f1c2334802d259a7e2a4e22a1fd03bd9
Parent:     52364683d5dc4beec9ba61a3fb848821b5cb66c4
Author:     Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:38:53 2015 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:32 2015 -0700

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

diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c
index 019fe0d..d6bbde4 100644
--- a/drivers/mtd/nand/mpc5121_nfc.c
+++ b/drivers/mtd/nand/mpc5121_nfc.c
@@ -659,6 +659,7 @@ static int mpc5121_nfc_probe(struct platform_device *op)
 	chip = &prv->chip;
 
 	mtd->priv = chip;
+	mtd->dev.parent = dev;
 	chip->priv = prv;
 	prv->dev = dev;
 



More information about the linux-mtd-cvs mailing list