Skip to content

Commit

Permalink
mtd: maps: pxa2xx-flash: show parent device in sysfs
Browse files Browse the repository at this point in the history
Fix a bug where mtd parent device symlinks aren't shown in sysfs.

While at it, make use of the default owner value set by mtdcore.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  • Loading branch information
Frans Klaver authored and Brian Norris committed Oct 13, 2015
1 parent 7f6b5db commit 2451581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/pxa2xx-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static int pxa2xx_flash_probe(struct platform_device *pdev)
iounmap(info->map.cached);
return -EIO;
}
info->mtd->owner = THIS_MODULE;
info->mtd->dev.parent = &pdev->dev;

mtd_device_parse_register(info->mtd, probes, NULL, flash->parts,
flash->nr_parts);
Expand Down

0 comments on commit 2451581

Please sign in to comment.