From: Axel Lin Date: Mon, 2 Dec 2013 02:12:25 +0000 (+0800) Subject: mtd: convert to use ATTRIBUTE_GROUPS X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=54c738f694ab67a007a43482d1dd7cf956fbb6c3;p=openwrt%2Fstaging%2Fblogic.git mtd: convert to use ATTRIBUTE_GROUPS Use new ATTRIBUTE_GROUPS macro to declare attribute groups. Signed-off-by: Axel Lin Signed-off-by: Brian Norris --- 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",