diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2012-09-13 18:46:39 +0200 |
---|---|---|
committer | Borislav Petkov <bp@alien8.de> | 2012-11-28 11:54:23 +0100 |
commit | 921a689965c26ae6fde12ebaadb4183cbfdb01fb (patch) | |
tree | 2ec52112ad7b76810b1157f8a8e9193c498a6ac8 /drivers/edac/edac_mc_sysfs.c | |
parent | 11652769179296062c74233e168399a87a3f6e8a (diff) | |
download | linux-921a689965c26ae6fde12ebaadb4183cbfdb01fb.tar.bz2 |
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/edac_mc_sysfs.c')
-rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 1 |
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, 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); |