From 8d07bb3c27bae405502efb88032942f1e72fa54f Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Thu, 13 Sep 2012 18:46:39 +0200 Subject: [PATCH] EDAC: Pass mci parent Initialize the mem_ctl_info descriptor of a csrow properly. Signed-off-by: Borislav Petkov --- drivers/edac/edac_mc_sysfs.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5