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

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

index fb8fd35fa668516dcb763037e164691482eca9ea..befddf0776e4c2d03cfcb674735c7d9a9b24674c 100644 (file)
@@ -382,6 +382,7 @@ static int tmio_probe(struct platform_device *dev)
        nand_chip = &tmio->chip;
        mtd->priv = nand_chip;
        mtd->name = "tmio-nand";
+       mtd->dev.parent = &dev->dev;
 
        tmio->ccr = devm_ioremap(&dev->dev, ccr->start, resource_size(ccr));
        if (!tmio->ccr)