summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 23:38:25 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 22:56:18 +0300
commit28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9 (patch)
treed15a5639bb246e5578a7787036177e9beda786a8 /drivers/mtd
parent3aed61d1eb06b8b19b7bb09d49b222ebc3f83347 (diff)
downloadlinux-28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9.tar.xz
mtd: maps: gpio-addr-flash: show parent device in sysfs
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/maps/gpio-addr-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/gpio-addr-flash.c b/drivers/mtd/maps/gpio-addr-flash.c
index 2fb346091af2..385305e66fd1 100644
--- a/drivers/mtd/maps/gpio-addr-flash.c
+++ b/drivers/mtd/maps/gpio-addr-flash.c
@@ -266,7 +266,7 @@ static int gpio_flash_probe(struct platform_device *pdev)
kfree(state);
return -ENXIO;
}
-
+ state->mtd->dev.parent = &pdev->dev;
mtd_device_parse_register(state->mtd, part_probe_types, NULL,
pdata->parts, pdata->nr_parts);