aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-09-24 15:36:32 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-10 10:45:02 -0400
commitc419d921e68c54232ce6d369a3b528cd7644b2ae (patch)
tree3733e7ccdd8291132534d4c7da9c6eb78697a4ba /drivers/edac
parentcc301b3ae3f615fe243f023e68e22b8298a6f883 (diff)
edac: Don't create csrow entries on instance groups
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/edac_mc_sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index 6088ae6e8ea..f689d7d6ab4 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -785,7 +785,6 @@ static struct sysfs_ops inst_grp_ops = {
785static struct kobj_type ktype_inst_grp = { 785static struct kobj_type ktype_inst_grp = {
786 .release = edac_inst_grp_release, 786 .release = edac_inst_grp_release,
787 .sysfs_ops = &inst_grp_ops, 787 .sysfs_ops = &inst_grp_ops,
788 .default_attrs = (struct attribute **)default_csrow_attr,
789}; 788};
790 789
791 790
@@ -806,13 +805,14 @@ static int edac_create_mci_instance_attributes(struct mem_ctl_info *mci,
806 while (sysfs_attrib) { 805 while (sysfs_attrib) {
807 if (sysfs_attrib->grp) { 806 if (sysfs_attrib->grp) {
808 struct kobject *newkobj = &sysfs_attrib->grp->kobj; 807 struct kobject *newkobj = &sysfs_attrib->grp->kobj;
808
809 debugf0("%s() grp %s, mci %p\n", __func__, 809 debugf0("%s() grp %s, mci %p\n", __func__,
810 sysfs_attrib->grp->name, mci); 810 sysfs_attrib->grp->name, mci);
811 811
812 sysfs_attrib->grp->mci = mci; 812 sysfs_attrib->grp->mci = mci;
813 813
814 err = kobject_init_and_add(newkobj, &ktype_inst_grp, 814 err = kobject_init_and_add(newkobj, &ktype_inst_grp,
815 kobj, 815 &mci->edac_mci_kobj,
816 sysfs_attrib->grp->name); 816 sysfs_attrib->grp->name);
817 if (err) 817 if (err)
818 return err; 818 return err;