mtd: maps: lantiq-flash: show parent device in sysfs

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>
This commit is contained in:
Frans Klaver 2015-06-10 22:38:28 +02:00 committed by Brian Norris
parent e4e07db4ce
commit c54c2fb783
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ ltq_mtd_probe(struct platform_device *pdev)
return -ENXIO;
}
ltq_mtd->mtd->owner = THIS_MODULE;
ltq_mtd->mtd->dev.parent = &pdev->dev;
cfi = ltq_mtd->map->fldrv_priv;
cfi->addr_unlock1 ^= 1;