mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
dlm: Replace default_attrs in dlm_ktype with default_groups
The kobj_type default_attrs field is being replaced by the default_groups field, so replace the default_attrs field in dlm_ktype with default_groups. Use the ATTRIBUTE_GROUPS macro to create dlm_groups. Signed-off-by: Kimberly Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
59137a93f3
commit
c9c5b5e156
1 changed files with 2 additions and 1 deletions
|
|
@ -158,6 +158,7 @@ static struct attribute *dlm_attrs[] = {
|
|||
&dlm_attr_recover_nodeid.attr,
|
||||
NULL,
|
||||
};
|
||||
ATTRIBUTE_GROUPS(dlm);
|
||||
|
||||
static ssize_t dlm_attr_show(struct kobject *kobj, struct attribute *attr,
|
||||
char *buf)
|
||||
|
|
@ -187,7 +188,7 @@ static const struct sysfs_ops dlm_attr_ops = {
|
|||
};
|
||||
|
||||
static struct kobj_type dlm_ktype = {
|
||||
.default_attrs = dlm_attrs,
|
||||
.default_groups = dlm_groups,
|
||||
.sysfs_ops = &dlm_attr_ops,
|
||||
.release = lockspace_kobj_release,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue