Commit 54c738f6 authored by Axel Lin's avatar Axel Lin Committed by Brian Norris

mtd: convert to use ATTRIBUTE_GROUPS

Use new ATTRIBUTE_GROUPS macro to declare attribute groups.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 574926c5
...@@ -313,15 +313,7 @@ static struct attribute *mtd_attrs[] = { ...@@ -313,15 +313,7 @@ static struct attribute *mtd_attrs[] = {
&dev_attr_bitflip_threshold.attr, &dev_attr_bitflip_threshold.attr,
NULL, NULL,
}; };
ATTRIBUTE_GROUPS(mtd);
static struct attribute_group mtd_group = {
.attrs = mtd_attrs,
};
static const struct attribute_group *mtd_groups[] = {
&mtd_group,
NULL,
};
static struct device_type mtd_devtype = { static struct device_type mtd_devtype = {
.name = "mtd", .name = "mtd",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment