diff options
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
-rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index 4a0576bd06fc..3706b2bc0987 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
@@ -743,7 +743,7 @@ static struct kobj_type ktype_mc_set_attribs = { | |||
743 | * /sys/devices/system/edac/mc | 743 | * /sys/devices/system/edac/mc |
744 | */ | 744 | */ |
745 | static struct kset mc_kset = { | 745 | static struct kset mc_kset = { |
746 | .kobj = {.name = "mc", .ktype = &ktype_mc_set_attribs }, | 746 | .kobj = {.ktype = &ktype_mc_set_attribs }, |
747 | .ktype = &ktype_mci, | 747 | .ktype = &ktype_mci, |
748 | }; | 748 | }; |
749 | 749 | ||
@@ -1010,6 +1010,7 @@ int edac_sysfs_setup_mc_kset(void) | |||
1010 | } | 1010 | } |
1011 | 1011 | ||
1012 | /* Init the MC's kobject */ | 1012 | /* Init the MC's kobject */ |
1013 | kobject_set_name(&mc_kset.kobj, "mc"); | ||
1013 | mc_kset.kobj.parent = &edac_class->kset.kobj; | 1014 | mc_kset.kobj.parent = &edac_class->kset.kobj; |
1014 | 1015 | ||
1015 | /* register the mc_kset */ | 1016 | /* register the mc_kset */ |