diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-12-01 21:12:25 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 14:22:21 -0500 |
commit | 54c738f694ab67a007a43482d1dd7cf956fbb6c3 (patch) | |
tree | b52a8b0bf144506eb24fbe4d560e4a695f5a7401 | |
parent | 574926c5bc3d787bb0b935b99d8825b3199ba76b (diff) |
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[] = { | |||
313 | &dev_attr_bitflip_threshold.attr, | 313 | &dev_attr_bitflip_threshold.attr, |
314 | NULL, | 314 | NULL, |
315 | }; | 315 | }; |
316 | 316 | ATTRIBUTE_GROUPS(mtd); | |
317 | static struct attribute_group mtd_group = { | ||
318 | .attrs = mtd_attrs, | ||
319 | }; | ||
320 | |||
321 | static const struct attribute_group *mtd_groups[] = { | ||
322 | &mtd_group, | ||
323 | NULL, | ||
324 | }; | ||
325 | 317 | ||
326 | static struct device_type mtd_devtype = { | 318 | static struct device_type mtd_devtype = { |
327 | .name = "mtd", | 319 | .name = "mtd", |