Skip to content

Commit

Permalink
edac: Don't create csrow entries on instance groups
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed May 10, 2010
1 parent cc301b3 commit c419d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/edac/edac_mc_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ static struct sysfs_ops inst_grp_ops = {
static struct kobj_type ktype_inst_grp = {
.release = edac_inst_grp_release,
.sysfs_ops = &inst_grp_ops,
.default_attrs = (struct attribute **)default_csrow_attr,
};


Expand All @@ -806,13 +805,14 @@ static int edac_create_mci_instance_attributes(struct mem_ctl_info *mci,
while (sysfs_attrib) {
if (sysfs_attrib->grp) {
struct kobject *newkobj = &sysfs_attrib->grp->kobj;

debugf0("%s() grp %s, mci %p\n", __func__,
sysfs_attrib->grp->name, mci);

sysfs_attrib->grp->mci = mci;

err = kobject_init_and_add(newkobj, &ktype_inst_grp,
kobj,
&mci->edac_mci_kobj,
sysfs_attrib->grp->name);
if (err)
return err;
Expand Down

0 comments on commit c419d92

Please sign in to comment.