From: Kimberly Brown Date: Tue, 2 Apr 2019 02:51:41 +0000 (-0400) Subject: irqdesc: Replace irq_kobj_type's default_attrs field with groups X-Git-Tag: v5.4-rc1~1077^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52ba92f5882adf1ee785c4c5ef23491948917fcd;p=platform%2Fkernel%2Flinux-rpi.git irqdesc: Replace irq_kobj_type's default_attrs field with groups The kobj_type default_attrs field is being replaced by the default_groups field. Replace irq_kobj_type's default_attrs field with default_groups and use the ATTRIBUTE_GROUPS macro to create irq_groups. This patch was tested by verifying that the sysfs files for the attributes in the default groups were created. Signed-off-by: Kimberly Brown Reviewed-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 13539e1..bbec57b 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -275,11 +275,12 @@ static struct attribute *irq_attrs[] = { &actions_attr.attr, NULL }; +ATTRIBUTE_GROUPS(irq); static struct kobj_type irq_kobj_type = { .release = irq_kobj_release, .sysfs_ops = &kobj_sysfs_ops, - .default_attrs = irq_attrs, + .default_groups = irq_groups, }; static void irq_sysfs_add(int irq, struct irq_desc *desc)