mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
be0d692657
commit
52ba92f588
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue