summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 22:38:28 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 12:56:20 -0700
commitc54c2fb783e2ae6636344de690891bc93c077530 (patch)
tree5c032ba527373c2c129a325bee4d7521b00ff59a /drivers/mtd/maps
parente4e07db4ce50d97f14ed1f9bb10c3782cce5fe26 (diff)
downloadop-kernel-dev-c54c2fb783e2ae6636344de690891bc93c077530.zip
op-kernel-dev-c54c2fb783e2ae6636344de690891bc93c077530.tar.gz
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>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/lantiq-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c
index e2f8782..9385205 100644
--- a/drivers/mtd/maps/lantiq-flash.c
+++ b/drivers/mtd/maps/lantiq-flash.c
@@ -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;
OpenPOWER on IntegriCloud