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

mtd: nand: fsmc_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>
上级 a309c6be
...@@ -1017,7 +1017,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev) ...@@ -1017,7 +1017,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
mtd->priv = nand; mtd->priv = nand;
nand->priv = host; nand->priv = host;
host->mtd.owner = THIS_MODULE; host->mtd.dev.parent = &pdev->dev;
nand->IO_ADDR_R = host->data_va; nand->IO_ADDR_R = host->data_va;
nand->IO_ADDR_W = host->data_va; nand->IO_ADDR_W = host->data_va;
nand->cmd_ctrl = fsmc_cmd_ctrl; nand->cmd_ctrl = fsmc_cmd_ctrl;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册