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

Commit 550dab5b authored by Frans Klaver's avatar Frans Klaver Committed by Brian Norris
Browse files

mtd: nand: pxa3xx_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: default avatarFrans Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent e6c6c284
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1663,7 +1663,7 @@ static int alloc_nand_resource(struct platform_device *pdev)
		host->cs = cs;
		host->info_data = info;
		mtd->priv = host;
		mtd->owner = THIS_MODULE;
		mtd->dev.parent = &pdev->dev;

		chip->ecc.read_page	= pxa3xx_nand_read_page_hwecc;
		chip->ecc.write_page	= pxa3xx_nand_write_page_hwecc;