summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/sh_flctl.c
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 23:39:04 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 22:56:35 +0300
commitc4f7dc72e6a56d50e00b40f76be0119ce9abdeec (patch)
tree0a87096a42c2086cd78b5b4a131c91ba3e17a1fa /drivers/mtd/nand/sh_flctl.c
parent2eaac143aa6d433f92819acca1e62a337a73e0a3 (diff)
downloadlinux-c4f7dc72e6a56d50e00b40f76be0119ce9abdeec.tar.xz
mtd: nand: sh_flctl: 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>
Diffstat (limited to 'drivers/mtd/nand/sh_flctl.c')
-rw-r--r--drivers/mtd/nand/sh_flctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index c3ce81c1a716..2e4f762775d5 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -1123,6 +1123,7 @@ static int flctl_probe(struct platform_device *pdev)
flctl_mtd = &flctl->mtd;
nand = &flctl->chip;
flctl_mtd->priv = nand;
+ flctl_mtd->dev.parent = &pdev->dev;
flctl->pdev = pdev;
flctl->hwecc = pdata->has_hwecc;
flctl->holden = pdata->use_holden;