Skip to content

Commit 26e9baa

Browse files
gregkhvinodkoul
authored andcommitted
dmaengine: ioatdma: 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 ioatdma 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: Vinod Koul <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Acked-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 5cb664f commit 26e9baa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/dma/ioat/sysfs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ static struct attribute *ioat_attrs[] = {
158158
&intr_coalesce_attr.attr,
159159
NULL,
160160
};
161+
ATTRIBUTE_GROUPS(ioat);
161162

162163
struct kobj_type ioat_ktype = {
163164
.sysfs_ops = &ioat_sysfs_ops,
164-
.default_attrs = ioat_attrs,
165+
.default_groups = ioat_groups,
165166
};

0 commit comments

Comments
 (0)