mtd: nand: fsl_ifc_nand: show parent device in sysfs
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:45 +0000 (22:38 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:30 +0000 (12:56 -0700)
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@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/fsl_ifc_nand.c

index 429142e55c6c0cbab4c18d15e134317cd0d02a3e..b9dd41cba3afc85f1daac4eb32912bd444a4f312 100644 (file)
@@ -882,7 +882,7 @@ static int fsl_ifc_chip_init(struct fsl_ifc_mtd *priv)
 
        /* Fill in fsl_ifc_mtd structure */
        priv->mtd.priv = chip;
-       priv->mtd.owner = THIS_MODULE;
+       priv->mtd.dev.parent = priv->dev;
 
        /* fill in nand_chip structure */
        /* set up function call table */