OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eaac14
)
mtd: nand: sh_flctl: show parent device in sysfs
author
Frans Klaver
<fransklaver@gmail.com>
Wed, 10 Jun 2015 20:39:04 +0000
(22:39 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:35 +0000
(12:56 -0700)
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>
drivers/mtd/nand/sh_flctl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/sh_flctl.c
b/drivers/mtd/nand/sh_flctl.c
index
c3ce81c
..
2e4f762
100644
(file)
--- 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;