mtd: nand: mpc5121_nfc: 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:
Frans Klaver 2015-06-10 22:38:53 +02:00 committed by Brian Norris
parent 52364683d5
commit 7829ab93f1
1 changed files with 1 additions and 0 deletions

View File

@ -659,6 +659,7 @@ static int mpc5121_nfc_probe(struct platform_device *op)
chip = &prv->chip;
mtd->priv = chip;
mtd->dev.parent = dev;
chip->priv = prv;
prv->dev = dev;