aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Klaver <[email protected]>2015-06-10 22:38:51 +0200
committerBrian Norris <[email protected]>2015-10-13 12:56:48 -0700
commit249eab698068f51c477c9ca55c59c8965025f1dd (patch)
treeedbb3ec508655a332a4d060d338c052b357ba7a5
parent50c65c8ffa4fd08926e671f0c4d9702bfc29c4e2 (diff)
mtd: nand: jz4740_nand: 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 <[email protected]> Signed-off-by: Brian Norris <[email protected]>
-rw-r--r--drivers/mtd/nand/jz4740_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c
index ebf2cce04cba..dc4e8446f1ff 100644
--- a/drivers/mtd/nand/jz4740_nand.c
+++ b/drivers/mtd/nand/jz4740_nand.c
@@ -434,7 +434,7 @@ static int jz_nand_probe(struct platform_device *pdev)
mtd = &nand->mtd;
chip = &nand->chip;
mtd->priv = chip;
- mtd->owner = THIS_MODULE;
+ mtd->dev.parent = &pdev->dev;
mtd->name = "jz4740-nand";
chip->ecc.hwctl = jz_nand_hwctl;