diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-11 08:28:48 -0400 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2013-03-16 01:32:30 -0400 |
commit | 9713faecff3d071de1208b081d4943b002e9cb1c (patch) | |
tree | b6ab68f15527eae952a407aa604607aca719a5ba /drivers/edac/edac_mc_sysfs.c | |
parent | 1eef1282549d7accdd33ee36d409b039b1f911fb (diff) |
EDAC: Merge mci.mem_is_per_rank with mci.csbased
Both mci.mem_is_per_rank and mci.csbased denote the same thing: the
memory controller is csrows based. Merge both fields into one.
There's no need for the driver to actually fill it, as the core detects
it by checking if one of the layers has the csrows type as part of the
memory hierarchy:
if (layers[i].type == EDAC_MC_LAYER_CHIP_SELECT)
per_rank = true;
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
-rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index 4c50a4760db7..5899a76eec3b 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
@@ -609,7 +609,7 @@ static int edac_create_dimm_object(struct mem_ctl_info *mci, | |||
609 | device_initialize(&dimm->dev); | 609 | device_initialize(&dimm->dev); |
610 | 610 | ||
611 | dimm->dev.parent = &mci->dev; | 611 | dimm->dev.parent = &mci->dev; |
612 | if (mci->mem_is_per_rank) | 612 | if (mci->csbased) |
613 | dev_set_name(&dimm->dev, "rank%d", index); | 613 | dev_set_name(&dimm->dev, "rank%d", index); |
614 | else | 614 | else |
615 | dev_set_name(&dimm->dev, "dimm%d", index); | 615 | dev_set_name(&dimm->dev, "dimm%d", index); |