From: Frans Klaver Date: Wed, 10 Jun 2015 20:38:26 +0000 (+0200) Subject: mtd: maps: intel_vr_nor: show parent device in sysfs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5e50a52eb954ca6c23b1d935b77ba75ec125352e;p=linux-beck.git 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 Signed-off-by: Brian Norris --- 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; }