mtd: nand: fsl_elbc_nand: show parent device in sysfs
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:44 +0000 (22:38 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:46 +0000 (12:56 -0700)
Fix a bug where mtd parent device symlinks aren't shown in sysfs.

While at it, make use of the default owner value set by mtdcore.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/fsl_elbc_nand.c

index b812074b748d84a4b5596732561cc1542f2e351e..43cf0f961c3ebd445dc03f5f4aa8825cffd88b45 100644 (file)
@@ -747,7 +747,7 @@ static int fsl_elbc_chip_init(struct fsl_elbc_mtd *priv)
 
        /* Fill in fsl_elbc_mtd structure */
        priv->mtd.priv = chip;
-       priv->mtd.owner = THIS_MODULE;
+       priv->mtd.dev.parent = priv->dev;
 
        /* set timeout to maximum */
        priv->fmr = 15 << FMR_CWTO_SHIFT;