提交 921a6899 编写于 作者: B Borislav Petkov 提交者: Borislav Petkov

EDAC: Pass mci parent

Initialize the mem_ctl_info descriptor of a csrow properly.
Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
上级 11652769
无相关合并请求
......@@ -373,6 +373,7 @@ static int edac_create_csrow_object(struct mem_ctl_info *mci,
csrow->dev.bus = &mci->bus;
device_initialize(&csrow->dev);
csrow->dev.parent = &mci->dev;
csrow->mci = mci;
dev_set_name(&csrow->dev, "csrow%d", index);
dev_set_drvdata(&csrow->dev, csrow);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部