We can use the ATTRIBUTE_GROUPS() macro here, so use it, saving some
lines of code.
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org
&dev_attr_vmstat.attr,
NULL
};
-
-static struct attribute_group node_dev_attr_group = {
- .attrs = node_dev_attrs,
-};
-
-static const struct attribute_group *node_dev_attr_groups[] = {
- &node_dev_attr_group,
- NULL
-};
+ATTRIBUTE_GROUPS(node_dev);
#ifdef CONFIG_HUGETLBFS
/*
node->dev.id = num;
node->dev.bus = &node_subsys;
node->dev.release = node_device_release;
- node->dev.groups = node_dev_attr_groups;
+ node->dev.groups = node_dev_groups;
error = device_register(&node->dev);
if (!error){