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:
e4e07db
)
mtd: maps: lantiq-flash: show parent device in sysfs
author
Frans Klaver
<fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:28 +0000
(22:38 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:20 +0000
(12:56 -0700)
Fix a bug where mtd 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/maps/lantiq-flash.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/lantiq-flash.c
b/drivers/mtd/maps/lantiq-flash.c
index e2f878216048eed8ac69e973d5da7e9f4e668147..93852054977ea52a52bea1031296184d754e2761 100644
(file)
--- a/
drivers/mtd/maps/lantiq-flash.c
+++ b/
drivers/mtd/maps/lantiq-flash.c
@@
-160,7
+160,7
@@
ltq_mtd_probe(struct platform_device *pdev)
return -ENXIO;
}
- ltq_mtd->mtd->
owner = THIS_MODULE
;
+ ltq_mtd->mtd->
dev.parent = &pdev->dev
;
cfi = ltq_mtd->map->fldrv_priv;
cfi->addr_unlock1 ^= 1;