summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2012-09-13 18:46:39 +0200
committerBorislav Petkov <bp@alien8.de>2012-11-28 11:54:23 +0100
commit921a689965c26ae6fde12ebaadb4183cbfdb01fb (patch)
tree2ec52112ad7b76810b1157f8a8e9193c498a6ac8 /drivers/edac
parent11652769179296062c74233e168399a87a3f6e8a (diff)
downloadop-kernel-dev-921a689965c26ae6fde12ebaadb4183cbfdb01fb.zip
op-kernel-dev-921a689965c26ae6fde12ebaadb4183cbfdb01fb.tar.gz
EDAC: Pass mci parent
Initialize the mem_ctl_info descriptor of a csrow properly. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/edac_mc_sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index ed0bc07..cf13bff 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -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);
OpenPOWER on IntegriCloud