Commit 921a6899 authored by Borislav Petkov's avatar Borislav Petkov Committed by Borislav Petkov

EDAC: Pass mci parent

Initialize the mem_ctl_info descriptor of a csrow properly.
Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment