projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c6c28
)
mtd: nand: pxa3xx_nand: show parent device in sysfs
author
Frans Klaver
<fransklaver@gmail.com>
Wed, 10 Jun 2015 20:39:01 +0000
(22:39 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:45 +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/pxa3xx_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/pxa3xx_nand.c
b/drivers/mtd/nand/pxa3xx_nand.c
index 232c7074624af31fb9ccf58b2c5d8a9b945cc819..0024a9c3563158774f3600e410d91107958c5043 100644
(file)
--- a/
drivers/mtd/nand/pxa3xx_nand.c
+++ b/
drivers/mtd/nand/pxa3xx_nand.c
@@
-1663,7
+1663,7
@@
static int alloc_nand_resource(struct platform_device *pdev)
host->cs = cs;
host->info_data = info;
mtd->priv = host;
- mtd->
owner = THIS_MODULE
;
+ mtd->
dev.parent = &pdev->dev
;
chip->ecc.read_page = pxa3xx_nand_read_page_hwecc;
chip->ecc.write_page = pxa3xx_nand_write_page_hwecc;