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:
853f1c5
)
mtd: nand: sharpsl: show parent device in sysfs
author
Frans Klaver
<fransklaver@gmail.com>
Wed, 10 Jun 2015 20:39:05 +0000
(22:39 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:42 +0000
(12:56 -0700)
Fix a bug where parent device symlinks aren't shown in sysfs.
While at it, make use of the default owner value set by mtdcore.
Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/sharpsl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/sharpsl.c
b/drivers/mtd/nand/sharpsl.c
index 842c47a451a0dcfedd21b28b103804b684212e13..082b6009736d921e0215c59854baeb3ee0ae3ec4 100644
(file)
--- a/
drivers/mtd/nand/sharpsl.c
+++ b/
drivers/mtd/nand/sharpsl.c
@@
-144,7
+144,7
@@
static int sharpsl_nand_probe(struct platform_device *pdev)
/* Link the private data with the MTD structure */
sharpsl->mtd.priv = this;
- sharpsl->mtd.
owner = THIS_MODULE
;
+ sharpsl->mtd.
dev.parent = &pdev->dev
;
platform_set_drvdata(pdev, sharpsl);