aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2012-09-13 12:46:39 -0400
committerBorislav Petkov <bp@alien8.de>2012-11-28 05:54:23 -0500
commit921a689965c26ae6fde12ebaadb4183cbfdb01fb (patch)
tree2ec52112ad7b76810b1157f8a8e9193c498a6ac8
parent11652769179296062c74233e168399a87a3f6e8a (diff)
EDAC: Pass mci parent
Initialize the mem_ctl_info descriptor of a csrow properly. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
-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 ed0bc07b8503..cf13bff94f5c 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,
373 csrow->dev.bus = &mci->bus; 373 csrow->dev.bus = &mci->bus;
374 device_initialize(&csrow->dev); 374 device_initialize(&csrow->dev);
375 csrow->dev.parent = &mci->dev; 375 csrow->dev.parent = &mci->dev;
376 csrow->mci = mci;
376 dev_set_name(&csrow->dev, "csrow%d", index); 377 dev_set_name(&csrow->dev, "csrow%d", index);
377 dev_set_drvdata(&csrow->dev, csrow); 378 dev_set_drvdata(&csrow->dev, csrow);
378 379