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:
57eea0f
)
mtd: devices: spear_smi: show parent device in sysfs
author
Frans Klaver
<fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:21 +0000
(22:38 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 13 Oct 2015 16:21:15 +0000
(09:21 -0700)
Fix a bug where mtd parent device symlinks aren't shown in sysfs.
Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/spear_smi.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/spear_smi.c
b/drivers/mtd/devices/spear_smi.c
index 04b24d2b03f285ab10c98d742b2915e48b3e4189..64c7458344d4331e2e03e99034fbb0e051b24528 100644
(file)
--- a/
drivers/mtd/devices/spear_smi.c
+++ b/
drivers/mtd/devices/spear_smi.c
@@
-854,6
+854,7
@@
static int spear_smi_setup_banks(struct platform_device *pdev,
else
flash->mtd.name = flash_devices[flash_index].name;
+ flash->mtd.dev.parent = &pdev->dev;
flash->mtd.type = MTD_NORFLASH;
flash->mtd.writesize = 1;
flash->mtd.flags = MTD_CAP_NORFLASH;