summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 20:38:57 (GMT)
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 19:56:41 (GMT)
commit853f1c58c4b2a6f1ec81c335c82d0252b387ab1e (patch)
treee12b0ad2a36861729b89217a6338138c80014fd7 /drivers/mtd/nand
parent61344d074f4f924cf35aeee445568d9b7750d915 (diff)
downloadlinux-853f1c58c4b2a6f1ec81c335c82d0252b387ab1e.tar.xz
mtd: nand: omap2: show parent device structure in sysfs
Make sure the device structure is properly shown in sysfs by properly filling in dev.parent. While at it, make use of the default owner and name values set by mtdcore. Signed-off-by: Frans Klaver <fransklaver@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/omap2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 60fa899..7fbf009 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -1684,8 +1684,7 @@ static int omap_nand_probe(struct platform_device *pdev)
info->ecc_opt = pdata->ecc_opt;
mtd = &info->mtd;
mtd->priv = &info->nand;
- mtd->name = dev_name(&pdev->dev);
- mtd->owner = THIS_MODULE;
+ mtd->dev.parent = &pdev->dev;
nand_chip = &info->nand;
nand_chip->ecc.priv = NULL;