Browse Source

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>
Frans Klaver 10 years ago
parent
commit
7829ab93f1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/mtd/nand/mpc5121_nfc.c

+ 1 - 0
drivers/mtd/nand/mpc5121_nfc.c

@@ -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;