1
0
Fork 0

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>
steinar/wifi_calib_4_9_kernel
Frans Klaver 2015-06-10 22:38:25 +02:00 committed by Brian Norris
parent 3aed61d1eb
commit 28bc7406bd
1 changed files with 1 additions and 1 deletions

View File

@ -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);