]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mtd: nand: jz4740_nand: show parent device in sysfs
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:51 +0000 (22:38 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:48 +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 value set by mtdcore.

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

index ebf2cce04cba14a3caa3baf9d503aa17a730e969..dc4e8446f1ff10b55acf6c40a4cb0ac662cf2b06 100644 (file)
@@ -434,7 +434,7 @@ static int jz_nand_probe(struct platform_device *pdev)
        mtd             = &nand->mtd;
        chip            = &nand->chip;
        mtd->priv       = chip;
-       mtd->owner      = THIS_MODULE;
+       mtd->dev.parent = &pdev->dev;
        mtd->name       = "jz4740-nand";
 
        chip->ecc.hwctl         = jz_nand_hwctl;