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 12:56:19 -0700
commit5e50a52eb954ca6c23b1d935b77ba75ec125352e (patch)
treea51453927c1476323c0105f7ba2ab0a5db494ef8
parent28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9 (diff)
downloadop-kernel-dev-5e50a52eb954ca6c23b1d935b77ba75ec125352e.zip
op-kernel-dev-5e50a52eb954ca6c23b1d935b77ba75ec125352e.tar.gz
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 5ab71f0..8bf7977 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;
}
OpenPOWER on IntegriCloud