Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/sclp_sd: 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 sclp_sd sysfs code to use default_groups field which
has been the preferred way since commit aa30f47cf666 ("kobject: Add
support for default attribute groups to kobj_type") so that we can
soon get rid of the obsolete default_attrs field.

Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220106095252.3273905-1-gregkh@linuxfoundation.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

authored by

Greg Kroah-Hartman and committed by
Heiko Carstens
1350f36d 7b293216

+2 -1
+2 -1
drivers/s390/char/sclp_sd.c
··· 438 438 &reload_attr.attr, 439 439 NULL, 440 440 }; 441 + ATTRIBUTE_GROUPS(sclp_sd_file_default); 441 442 442 443 static struct kobj_type sclp_sd_file_ktype = { 443 444 .sysfs_ops = &kobj_sysfs_ops, 444 445 .release = sclp_sd_file_release, 445 - .default_attrs = sclp_sd_file_default_attrs, 446 + .default_groups = sclp_sd_file_default_groups, 446 447 }; 447 448 448 449 /**