Commit c4f7dc72 authored by Frans Klaver's avatar Frans Klaver Committed by Brian Norris

mtd: nand: sh_flctl: show parent device in sysfs

Fix a bug where parent device symlinks aren't shown in sysfs.
Signed-off-by: default avatarFrans Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 2eaac143
...@@ -1123,6 +1123,7 @@ static int flctl_probe(struct platform_device *pdev) ...@@ -1123,6 +1123,7 @@ static int flctl_probe(struct platform_device *pdev)
flctl_mtd = &flctl->mtd; flctl_mtd = &flctl->mtd;
nand = &flctl->chip; nand = &flctl->chip;
flctl_mtd->priv = nand; flctl_mtd->priv = nand;
flctl_mtd->dev.parent = &pdev->dev;
flctl->pdev = pdev; flctl->pdev = pdev;
flctl->hwecc = pdata->has_hwecc; flctl->hwecc = pdata->has_hwecc;
flctl->holden = pdata->use_holden; flctl->holden = pdata->use_holden;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment