EDAC: Use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jan 2022 11:24:01 +0000 (12:24 +0100)
committerBorislav Petkov <bp@suse.de>
Sun, 23 Jan 2022 19:01:29 +0000 (20:01 +0100)
commit625c6b55699777ece6b87235f579e2cfbde049ce
treea54146b57c4df4f1b128e834ae8087b11e4e3bd9
parent11413893a0d0b19df976eb9a2b600ba56802db2f
EDAC: Use default_groups in kobj_type

There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field. Move the edac sysfs code to use default_groups field which has
been the preferred way since

  aa30f47cf666 ("kobject: Add support for default attribute groups to kobj_type")

so that the obsolete default_attrs field can be removed soon.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220104112401.1067148-2-gregkh@linuxfoundation.org
drivers/edac/edac_device_sysfs.c
drivers/edac/edac_pci_sysfs.c