diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 22:38:25 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 21:56:18 +0200 |
commit | 28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9 (patch) | |
tree | d15a5639bb246e5578a7787036177e9beda786a8 | |
parent | mtd: lpddr: show parent device in sysfs (diff) | |
download | linux-28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9.tar.xz linux-28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9.zip |
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>
-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); |