edac: Don't create csrow entries on instance groups

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2009-09-24 16:36:32 -03:00
parent cc301b3ae3
commit c419d921e6
1 changed files with 2 additions and 2 deletions

View File

@ -785,7 +785,6 @@ static struct sysfs_ops inst_grp_ops = {
static struct kobj_type ktype_inst_grp = { static struct kobj_type ktype_inst_grp = {
.release = edac_inst_grp_release, .release = edac_inst_grp_release,
.sysfs_ops = &inst_grp_ops, .sysfs_ops = &inst_grp_ops,
.default_attrs = (struct attribute **)default_csrow_attr,
}; };
@ -806,13 +805,14 @@ static int edac_create_mci_instance_attributes(struct mem_ctl_info *mci,
while (sysfs_attrib) { while (sysfs_attrib) {
if (sysfs_attrib->grp) { if (sysfs_attrib->grp) {
struct kobject *newkobj = &sysfs_attrib->grp->kobj; struct kobject *newkobj = &sysfs_attrib->grp->kobj;
debugf0("%s() grp %s, mci %p\n", __func__, debugf0("%s() grp %s, mci %p\n", __func__,
sysfs_attrib->grp->name, mci); sysfs_attrib->grp->name, mci);
sysfs_attrib->grp->mci = mci; sysfs_attrib->grp->mci = mci;
err = kobject_init_and_add(newkobj, &ktype_inst_grp, err = kobject_init_and_add(newkobj, &ktype_inst_grp,
kobj, &mci->edac_mci_kobj,
sysfs_attrib->grp->name); sysfs_attrib->grp->name);
if (err) if (err)
return err; return err;