aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-12-01 21:12:25 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 14:22:21 -0500
commit54c738f694ab67a007a43482d1dd7cf956fbb6c3 (patch)
treeb52a8b0bf144506eb24fbe4d560e4a695f5a7401
parent574926c5bc3d787bb0b935b99d8825b3199ba76b (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.c10
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 316ATTRIBUTE_GROUPS(mtd);
317static struct attribute_group mtd_group = {
318 .attrs = mtd_attrs,
319};
320
321static const struct attribute_group *mtd_groups[] = {
322 &mtd_group,
323 NULL,
324};
325 317
326static struct device_type mtd_devtype = { 318static struct device_type mtd_devtype = {
327 .name = "mtd", 319 .name = "mtd",