Commit 7b679053 authored by Frans Klaver's avatar Frans Klaver Committed by Brian Norris

mtd: nand: tmio_nand: show parent device in sysfs

Fix a bug where parent device symlinks aren't shown in sysfs.
Signed-off-by: default avatarFrans Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 611425d3
...@@ -382,6 +382,7 @@ static int tmio_probe(struct platform_device *dev) ...@@ -382,6 +382,7 @@ static int tmio_probe(struct platform_device *dev)
nand_chip = &tmio->chip; nand_chip = &tmio->chip;
mtd->priv = nand_chip; mtd->priv = nand_chip;
mtd->name = "tmio-nand"; mtd->name = "tmio-nand";
mtd->dev.parent = &dev->dev;
tmio->ccr = devm_ioremap(&dev->dev, ccr->start, resource_size(ccr)); tmio->ccr = devm_ioremap(&dev->dev, ccr->start, resource_size(ccr));
if (!tmio->ccr) if (!tmio->ccr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment