projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c65c8
)
mtd: nand: jz4740_nand: show parent device in sysfs
author
Frans Klaver
<fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:51 +0000
(22:38 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:48 +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/jz4740_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/jz4740_nand.c
b/drivers/mtd/nand/jz4740_nand.c
index ebf2cce04cba14a3caa3baf9d503aa17a730e969..dc4e8446f1ff10b55acf6c40a4cb0ac662cf2b06 100644
(file)
--- a/
drivers/mtd/nand/jz4740_nand.c
+++ b/
drivers/mtd/nand/jz4740_nand.c
@@
-434,7
+434,7
@@
static int jz_nand_probe(struct platform_device *pdev)
mtd = &nand->mtd;
chip = &nand->chip;
mtd->priv = chip;
- mtd->
owner = THIS_MODULE
;
+ mtd->
dev.parent = &pdev->dev
;
mtd->name = "jz4740-nand";
chip->ecc.hwctl = jz_nand_hwctl;