mtd: nand: fsl_upm: show parent device in sysfs

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 6 10:59:21 PST 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=50c65c8ffa4fd08926e671f0c4d9702bfc29c4e2
Commit:     50c65c8ffa4fd08926e671f0c4d9702bfc29c4e2
Parent:     6031a9c5e39121165617951c4dc337fed72c7bd5
Author:     Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:38:46 2015 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:47 2015 -0700

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

diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
index 72755d7..d326369 100644
--- a/drivers/mtd/nand/fsl_upm.c
+++ b/drivers/mtd/nand/fsl_upm.c
@@ -176,7 +176,7 @@ static int fun_chip_init(struct fsl_upm_nand *fun,
 		fun->chip.dev_ready = fun_chip_ready;
 
 	fun->mtd.priv = &fun->chip;
-	fun->mtd.owner = THIS_MODULE;
+	fun->mtd.dev.parent = fun->dev;
 
 	flash_np = of_get_next_child(upm_np, NULL);
 	if (!flash_np)



More information about the linux-mtd-cvs mailing list