mtd: nand: pxa3xx_nand: show parent device in sysfs
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:39:01 +0000 (22:39 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:45 +0000 (12:56 -0700)
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>
drivers/mtd/nand/pxa3xx_nand.c

index 232c7074624af31fb9ccf58b2c5d8a9b945cc819..0024a9c3563158774f3600e410d91107958c5043 100644 (file)
@@ -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;
This page took 0.036411 seconds and 5 git commands to generate.