Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Frans Klaver and committed by
Brian Norris
7b679053 611425d3

+1
+1
drivers/mtd/nand/tmio_nand.c
··· 382 382 nand_chip = &tmio->chip; 383 383 mtd->priv = nand_chip; 384 384 mtd->name = "tmio-nand"; 385 + mtd->dev.parent = &dev->dev; 385 386 386 387 tmio->ccr = devm_ioremap(&dev->dev, ccr->start, resource_size(ccr)); 387 388 if (!tmio->ccr)