projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/mtd/nand/sh_flctl.c
b/drivers/mtd/nand/sh_flctl.c
index c3ce81c1a7163a71d3ceee81ea248e11f45925dc..2e4f762775d544345608586ed84501cfd85608a9 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;