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:
c54c2fb
)
mtd: maps: latch-addr-flash: show parent device in sysfs
author
Frans Klaver
<fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:29 +0000
(22:38 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:21 +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/latch-addr-flash.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/latch-addr-flash.c
b/drivers/mtd/maps/latch-addr-flash.c
index cadfbe05187316a93449d69a0fb6773720a3aa06..6dc97aa667dc553cc44033b34394374b3c8b36d1 100644
(file)
--- a/
drivers/mtd/maps/latch-addr-flash.c
+++ b/
drivers/mtd/maps/latch-addr-flash.c
@@
-195,7
+195,7
@@
static int latch_addr_flash_probe(struct platform_device *dev)
err = -ENODEV;
goto iounmap;
}
- info->mtd->
owner = THIS_MODULE
;
+ info->mtd->
dev.parent = &dev->dev
;
mtd_device_parse_register(info->mtd, NULL, NULL,
latch_addr_data->parts,