diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 23:38:26 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 22:56:19 +0300 |
commit | 5e50a52eb954ca6c23b1d935b77ba75ec125352e (patch) | |
tree | a51453927c1476323c0105f7ba2ab0a5db494ef8 /drivers/mtd/maps | |
parent | 28bc7406bd6d0e3fb50f29348bafcaa9e34fabf9 (diff) | |
download | linux-5e50a52eb954ca6c23b1d935b77ba75ec125352e.tar.xz |
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>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r-- | drivers/mtd/maps/intel_vr_nor.c | 2 |
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; } |