diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 22:38:25 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 12:56:18 -0700 |
commit | 28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9 (patch) | |
tree | d15a5639bb246e5578a7787036177e9beda786a8 /drivers/mtd/maps | |
parent | 3aed61d1eb06b8b19b7bb09d49b222ebc3f83347 (diff) | |
download | linux-28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9.tar.bz2 |
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/maps')
-rw-r--r-- | drivers/mtd/maps/gpio-addr-flash.c | 2 |
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); |