ethernet: ibmveth: use default_groups in kobj_type
[platform/kernel/linux-starfive.git] / drivers / net / ethernet / ibm / ibmveth.c
index 45ba40c..22fb0d1 100644 (file)
@@ -1890,6 +1890,7 @@ static struct attribute *veth_pool_attrs[] = {
        &veth_size_attr,
        NULL,
 };
+ATTRIBUTE_GROUPS(veth_pool);
 
 static const struct sysfs_ops veth_pool_ops = {
        .show   = veth_pool_show,
@@ -1899,7 +1900,7 @@ static const struct sysfs_ops veth_pool_ops = {
 static struct kobj_type ktype_veth_pool = {
        .release        = NULL,
        .sysfs_ops      = &veth_pool_ops,
-       .default_attrs  = veth_pool_attrs,
+       .default_groups = veth_pool_groups,
 };
 
 static int ibmveth_resume(struct device *dev)