diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 22:39:04 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 12:56:35 -0700 |
commit | c4f7dc72e6a56d50e00b40f76be0119ce9abdeec (patch) | |
tree | 0a87096a42c2086cd78b5b4a131c91ba3e17a1fa /drivers/mtd | |
parent | 2eaac143aa6d433f92819acca1e62a337a73e0a3 (diff) | |
download | linux-c4f7dc72e6a56d50e00b40f76be0119ce9abdeec.tar.bz2 |
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')
-rw-r--r-- | drivers/mtd/nand/sh_flctl.c | 1 |
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; |