diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 22:38:27 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 12:56:19 -0700 |
commit | e4e07db4ce50d97f14ed1f9bb10c3782cce5fe26 (patch) | |
tree | bbc724a2c1f6c9374602d46e84e8b2595a475061 /drivers/mtd/maps | |
parent | 5e50a52eb954ca6c23b1d935b77ba75ec125352e (diff) | |
download | blackbird-op-linux-e4e07db4ce50d97f14ed1f9bb10c3782cce5fe26.tar.gz blackbird-op-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')
-rw-r--r-- | drivers/mtd/maps/ixp4xx.c | 2 |
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; |