Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 853f1c58 authored by Frans Klaver's avatar Frans Klaver Committed by Brian Norris
Browse files

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: default avatarFrans Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 61344d07
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;