diff options
author | Kimberly Brown <kimbrownkd@gmail.com> | 2019-04-01 22:51:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-25 22:06:11 +0200 |
commit | 52ba92f5882adf1ee785c4c5ef23491948917fcd (patch) | |
tree | 4fb51e3ec5c553f0a6798029d454541fa61ac18b /kernel | |
parent | be0d692657028854ff581b31191131b94f18637d (diff) | |
download | linux-stable-52ba92f5882adf1ee785c4c5ef23491948917fcd.tar.gz linux-stable-52ba92f5882adf1ee785c4c5ef23491948917fcd.tar.bz2 linux-stable-52ba92f5882adf1ee785c4c5ef23491948917fcd.zip |
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 <kimbrownkd@gmail.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/irqdesc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 13539e12cd80..bbec57bda666 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) |