Commit 75c09aad authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Helge Deller

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

Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent c1c72d9b
...@@ -482,11 +482,12 @@ static struct attribute *paths_subsys_attrs[] = { ...@@ -482,11 +482,12 @@ static struct attribute *paths_subsys_attrs[] = {
&paths_attr_layer.attr, &paths_attr_layer.attr,
NULL, NULL,
}; };
ATTRIBUTE_GROUPS(paths_subsys);
/* Specific kobject type for our PDC paths */ /* Specific kobject type for our PDC paths */
static struct kobj_type ktype_pdcspath = { static struct kobj_type ktype_pdcspath = {
.sysfs_ops = &pdcspath_attr_ops, .sysfs_ops = &pdcspath_attr_ops,
.default_attrs = paths_subsys_attrs, .default_groups = paths_subsys_groups,
}; };
/* We hard define the 4 types of path we expect to find */ /* We hard define the 4 types of path we expect to find */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment