From: Frans Klaver Date: Wed, 10 Jun 2015 20:39:01 +0000 (+0200) Subject: mtd: nand: pxa3xx_nand: show parent device in sysfs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=550dab5b357a6103571847d72cd23af069fb872b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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: Frans Klaver Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 232c7074624a..0024a9c35631 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -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;