projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1165276
)
EDAC: Pass mci parent
author
Borislav Petkov
<borislav.petkov@amd.com>
Thu, 13 Sep 2012 16:46:39 +0000
(18:46 +0200)
committer
Borislav Petkov
<bp@alien8.de>
Wed, 28 Nov 2012 10:54:23 +0000
(11:54 +0100)
Initialize the mem_ctl_info descriptor of a csrow properly.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/edac_mc_sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/edac_mc_sysfs.c
b/drivers/edac/edac_mc_sysfs.c
index ed0bc07b85039deb78c09812e461e0c41e3b3670..cf13bff94f5c795fa20fc2d874767490ffcf8c09 100644
(file)
--- 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);