mirror of https://gitee.com/openkylin/linux.git
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:
parent
52364683d5
commit
7829ab93f1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue