summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/ixp4xx.c
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 22:38:27 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 12:56:19 -0700
commite4e07db4ce50d97f14ed1f9bb10c3782cce5fe26 (patch)
treebbc724a2c1f6c9374602d46e84e8b2595a475061 /drivers/mtd/maps/ixp4xx.c
parent5e50a52eb954ca6c23b1d935b77ba75ec125352e (diff)
downloadlinux-e4e07db4ce50d97f14ed1f9bb10c3782cce5fe26.tar.gz
linux-e4e07db4ce50d97f14ed1f9bb10c3782cce5fe26.tar.bz2
linux-e4e07db4ce50d97f14ed1f9bb10c3782cce5fe26.zip
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 <fransklaver@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/maps/ixp4xx.c')
-rw-r--r--drivers/mtd/maps/ixp4xx.c2
1 files changed, 1 insertions, 1 deletions
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;