From: Frans Klaver Date: Wed, 10 Jun 2015 20:38:27 +0000 (+0200) Subject: mtd: maps: ixp4xx: show parent device in sysfs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e4e07db4ce50d97f14ed1f9bb10c3782cce5fe26;p=linux-beck.git mtd: maps: ixp4xx: 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/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c index b4430741024e..e3180d5aa06a 100644 --- a/drivers/mtd/maps/ixp4xx.c +++ b/drivers/mtd/maps/ixp4xx.c @@ -226,7 +226,7 @@ static int ixp4xx_flash_probe(struct platform_device *dev) err = -ENXIO; goto Error; } - info->mtd->owner = THIS_MODULE; + info->mtd->dev.parent = &dev->dev; /* Use the fast version */ info->map.write = ixp4xx_write16;