diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 22:38:43 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 12:56:29 -0700 |
commit | 0a1abe7961f1b90bb136157a302490da7d4fe47b (patch) | |
tree | 6d2bec6508b8639bd8bbc4330b517599d3c2ce1f /drivers/mtd | |
parent | fbe1a8bf125214807f1062707fc4097721c3c995 (diff) | |
download | blackbird-op-linux-0a1abe7961f1b90bb136157a302490da7d4fe47b.tar.gz blackbird-op-linux-0a1abe7961f1b90bb136157a302490da7d4fe47b.zip |
mtd: nand: docg4: show parent device in sysfs
Fix a bug where 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')
-rw-r--r-- | drivers/mtd/nand/docg4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/docg4.c b/drivers/mtd/nand/docg4.c index e5d7bcaafa7d..510c12d41761 100644 --- a/drivers/mtd/nand/docg4.c +++ b/drivers/mtd/nand/docg4.c @@ -1316,7 +1316,7 @@ static int __init probe_docg4(struct platform_device *pdev) doc = (struct docg4_priv *) (nand + 1); mtd->priv = nand; nand->priv = doc; - mtd->owner = THIS_MODULE; + mtd->dev.parent = &pdev->dev; doc->virtadr = virtadr; doc->dev = dev; |