diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 23:38:51 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 22:56:48 +0300 |
commit | 249eab698068f51c477c9ca55c59c8965025f1dd (patch) | |
tree | edbb3ec508655a332a4d060d338c052b357ba7a5 /drivers/mtd | |
parent | 50c65c8ffa4fd08926e671f0c4d9702bfc29c4e2 (diff) | |
download | linux-249eab698068f51c477c9ca55c59c8965025f1dd.tar.xz |
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 <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/jz4740_nand.c | 2 |
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; |