提交 550dab5b 编写于 作者: F Frans Klaver 提交者: Brian Norris

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: NFrans Klaver <fransklaver@gmail.com>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 e6c6c284
...@@ -1663,7 +1663,7 @@ static int alloc_nand_resource(struct platform_device *pdev) ...@@ -1663,7 +1663,7 @@ static int alloc_nand_resource(struct platform_device *pdev)
host->cs = cs; host->cs = cs;
host->info_data = info; host->info_data = info;
mtd->priv = host; mtd->priv = host;
mtd->owner = THIS_MODULE; mtd->dev.parent = &pdev->dev;
chip->ecc.read_page = pxa3xx_nand_read_page_hwecc; chip->ecc.read_page = pxa3xx_nand_read_page_hwecc;
chip->ecc.write_page = pxa3xx_nand_write_page_hwecc; chip->ecc.write_page = pxa3xx_nand_write_page_hwecc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册