diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-12-02 06:12:25 +0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 23:22:21 +0400 |
commit | 54c738f694ab67a007a43482d1dd7cf956fbb6c3 (patch) | |
tree | b52a8b0bf144506eb24fbe4d560e4a695f5a7401 /drivers/mtd/mtdcore.c | |
parent | 574926c5bc3d787bb0b935b99d8825b3199ba76b (diff) | |
download | linux-54c738f694ab67a007a43482d1dd7cf956fbb6c3.tar.xz |
mtd: convert to use ATTRIBUTE_GROUPS
Use new ATTRIBUTE_GROUPS macro to declare attribute groups.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/mtdcore.c')
-rw-r--r-- | drivers/mtd/mtdcore.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 92311a56939f..34c0b16aed5c 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -313,15 +313,7 @@ static struct attribute *mtd_attrs[] = { &dev_attr_bitflip_threshold.attr, NULL, }; - -static struct attribute_group mtd_group = { - .attrs = mtd_attrs, -}; - -static const struct attribute_group *mtd_groups[] = { - &mtd_group, - NULL, -}; +ATTRIBUTE_GROUPS(mtd); static struct device_type mtd_devtype = { .name = "mtd", |