Skip to content

Commit 1350f36

Browse files
gregkhhcahca
authored andcommitted
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 aa30f47 ("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>
1 parent 7b29321 commit 1350f36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/s390/char/sclp_sd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,12 @@ static struct attribute *sclp_sd_file_default_attrs[] = {
438438
&reload_attr.attr,
439439
NULL,
440440
};
441+
ATTRIBUTE_GROUPS(sclp_sd_file_default);
441442

442443
static struct kobj_type sclp_sd_file_ktype = {
443444
.sysfs_ops = &kobj_sysfs_ops,
444445
.release = sclp_sd_file_release,
445-
.default_attrs = sclp_sd_file_default_attrs,
446+
.default_groups = sclp_sd_file_default_groups,
446447
};
447448

448449
/**

0 commit comments

Comments
 (0)