Commit a71a6d96 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro

Use ATTRIBUTE_GROUPS macro to reduce the number of lines of code.

Generated by Coccinelle semantic patch.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent be1edb85
......@@ -137,14 +137,8 @@ static struct attribute *fsl_mc_dev_attrs[] = {
NULL,
};
static const struct attribute_group fsl_mc_dev_group = {
.attrs = fsl_mc_dev_attrs,
};
ATTRIBUTE_GROUPS(fsl_mc_dev);
static const struct attribute_group *fsl_mc_dev_groups[] = {
&fsl_mc_dev_group,
NULL,
};
struct bus_type fsl_mc_bus_type = {
.name = "fsl-mc",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment