mtd: nand: tmio_nand: show parent device in sysfs
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>
This commit is contained in:
parent
611425d337
commit
7b679053cd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue