diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-12-02 03:12:25 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 20:22:21 +0100 |
commit | 54c738f694ab67a007a43482d1dd7cf956fbb6c3 (patch) | |
tree | b52a8b0bf144506eb24fbe4d560e4a695f5a7401 | |
parent | mtd: m25p80: add support for m25px16 (diff) | |
download | linux-54c738f694ab67a007a43482d1dd7cf956fbb6c3.tar.xz linux-54c738f694ab67a007a43482d1dd7cf956fbb6c3.zip |
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>
-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", |