Skip to content

Commit c288bc0

Browse files
gregkhdavem330
authored andcommitted
ethernet: ibmveth: 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 ibmveth sysfs code to use default_groups field which has been the preferred way since 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: Michael Ellerman <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Cristobal Forno <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Tyrel Datwyler <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0cf765f commit c288bc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/ibm/ibmveth.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,7 @@ static struct attribute *veth_pool_attrs[] = {
18901890
&veth_size_attr,
18911891
NULL,
18921892
};
1893+
ATTRIBUTE_GROUPS(veth_pool);
18931894

18941895
static const struct sysfs_ops veth_pool_ops = {
18951896
.show = veth_pool_show,
@@ -1899,7 +1900,7 @@ static const struct sysfs_ops veth_pool_ops = {
18991900
static struct kobj_type ktype_veth_pool = {
19001901
.release = NULL,
19011902
.sysfs_ops = &veth_pool_ops,
1902-
.default_attrs = veth_pool_attrs,
1903+
.default_groups = veth_pool_groups,
19031904
};
19041905

19051906
static int ibmveth_resume(struct device *dev)

0 commit comments

Comments
 (0)