summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 22:38:26 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 21:56:19 +0200
commit5e50a52eb954ca6c23b1d935b77ba75ec125352e (patch)
treea51453927c1476323c0105f7ba2ab0a5db494ef8
parentmtd: maps: gpio-addr-flash: show parent device in sysfs (diff)
downloadlinux-5e50a52eb954ca6c23b1d935b77ba75ec125352e.tar.xz
linux-5e50a52eb954ca6c23b1d935b77ba75ec125352e.zip
mtd: maps: intel_vr_nor: 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>
-rw-r--r--drivers/mtd/maps/intel_vr_nor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/intel_vr_nor.c b/drivers/mtd/maps/intel_vr_nor.c
index 5ab71f0e1bcd..8bf79775e7c1 100644
--- a/drivers/mtd/maps/intel_vr_nor.c
+++ b/drivers/mtd/maps/intel_vr_nor.c
@@ -90,7 +90,7 @@ static int vr_nor_mtd_setup(struct vr_nor_mtd *p)
if (!p->info)
return -ENODEV;
- p->info->owner = THIS_MODULE;
+ p->info->dev.parent = &p->dev->dev;
return 0;
}